pom.xml 6.8 KB
Newer Older
1
<?xml version="1.0" encoding="UTF-8"?>
K
kohsuke 已提交
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
  <modelVersion>4.0.0</modelVersion>
4

5
  <parent>
6
    <groupId>org.jenkins-ci.main</groupId>
7
    <artifactId>jenkins-parent</artifactId>
8
    <version>2.230</version>
9
  </parent>
10

11
  <artifactId>cli</artifactId>
12

13 14
  <name>Jenkins cli</name>
  <description>Command line interface for Jenkins</description>
15

16 17 18
  <properties>
    <!-- TODO: remove once Medium level is set in the core (JENKINS-36716) -->
    <findbugs.threshold>Medium</findbugs.threshold>
19
    <junit.jupiter.version>5.5.2</junit.jupiter.version>
20 21
  </properties>

22 23 24 25 26 27 28 29 30 31 32 33
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.jenkins-ci.main</groupId>
        <artifactId>jenkins-bom</artifactId>
        <version>${project.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>

34
  <dependencies>
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-api</artifactId>
      <version>${junit.jupiter.version}</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-engine</artifactId>
      <version>${junit.jupiter.version}</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter</artifactId>
      <version>${junit.jupiter.version}</version>
      <scope>test</scope>
    </dependency>
53 54 55
    <dependency>
        <groupId>org.kohsuke</groupId>
        <artifactId>access-modifier-annotation</artifactId>
56
        <scope>provided</scope>
57
    </dependency>
58 59 60
    <dependency>
      <groupId>org.jenkins-ci</groupId>
      <artifactId>annotation-indexer</artifactId>
61
      <optional>true</optional>
62
    </dependency>
63 64 65
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
66
      <optional>true</optional>
67
    </dependency>
68 69
    <dependency>
      <groupId>junit</groupId>
J
Jesse Glick 已提交
70
      <artifactId>junit</artifactId>
C
César Soto Valero 已提交
71
      <scope>test</scope>
72 73 74 75
    </dependency>
    <dependency>
      <groupId>org.jvnet.localizer</groupId>
      <artifactId>localizer</artifactId>
D
Daniel Beck 已提交
76
      <version>1.26</version>
77
      <optional>true</optional>
78 79
    </dependency>
    <dependency>
80 81
      <groupId>org.apache.sshd</groupId>
      <artifactId>sshd-core</artifactId>
82
      <version>1.7.0</version>
83 84 85 86 87 88 89 90
      <optional>true</optional>
    </dependency>
    <!-- ed25519 algorithm, see JENKINS-45318 -->
    <dependency>
      <groupId>net.i2p.crypto</groupId>
      <artifactId>eddsa</artifactId>
      <version>0.3.0</version>
      <optional>true</optional>
91 92 93
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
94
      <artifactId>slf4j-jdk14</artifactId>
95 96 97 98 99 100 101
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.glassfish.tyrus.bundles</groupId>
      <artifactId>tyrus-standalone-client-jdk</artifactId>
      <version>1.12</version>
      <optional>true</optional>
102
    </dependency>
103
    <dependency>
B
Basil Crow 已提交
104 105
      <groupId>com.github.spotbugs</groupId>
      <artifactId>spotbugs-annotations</artifactId>
106
      <scope>provided</scope>
107
    </dependency>
108 109 110
    <dependency>
      <groupId>commons-lang</groupId>
      <artifactId>commons-lang</artifactId>
111
      <optional>true</optional>
112
    </dependency>
113 114
  </dependencies>

115 116
  <build>
    <plugins>
117 118 119 120
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.22.2</version>
      </plugin>
121
      <plugin>
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-shade-plugin</artifactId>
          <version>3.2.1</version>
          <executions>
              <execution>
                  <phase>package</phase>
                  <goals>
                      <goal>shade</goal>
                  </goals>
                  <configuration>
                      <createDependencyReducedPom>false</createDependencyReducedPom>
                      <relocations>
                          <relocation>
                              <pattern>javax.websocket</pattern>
                              <shadedPattern>io.jenkins.cli.shaded.javax.websocket</shadedPattern>
                          </relocation>
                          <relocation>
                              <pattern>org</pattern>
                              <shadedPattern>io.jenkins.cli.shaded.org</shadedPattern>
                          </relocation>
                          <relocation>
                              <pattern>net</pattern>
                              <shadedPattern>io.jenkins.cli.shaded.net</shadedPattern>
                          </relocation>
                      </relocations>
                      <transformers>
                          <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                              <mainClass>hudson.cli.CLI</mainClass>
                              <manifestEntries>
                                  <Jenkins-CLI-Version>${project.version}</Jenkins-CLI-Version>
                              </manifestEntries>
                          </transformer>
154
                          <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
155 156 157 158
                      </transformers>
                  </configuration>
              </execution>
          </executions>
159
      </plugin>
K
kohsuke 已提交
160 161 162
      <plugin>
        <groupId>org.jvnet.localizer</groupId>
        <artifactId>maven-localizer-plugin</artifactId>
163
        <!-- version specified in grandparent pom -->
K
kohsuke 已提交
164 165 166 167 168 169 170 171
        <executions>
          <execution>
            <goals>
              <goal>generate</goal>
            </goals>
            <configuration>
              <fileMask>Messages.properties</fileMask>
              <outputDirectory>target/generated-sources/localizer</outputDirectory>
172
              <accessModifierAnnotations>true</accessModifierAnnotations>
K
kohsuke 已提交
173 174 175 176
            </configuration>
          </execution>
        </executions>
      </plugin>
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>add-source</id>
            <phase>generate-sources</phase>
              <goals>
                 <goal>add-source</goal>
              </goals>
              <configuration>
                <sources>
                  <source>${project.build.directory}/generated-sources/localizer</source>
                </sources>
              </configuration>
          </execution>
        </executions>
      </plugin>
195 196
    </plugins>
  </build>
197
</project>