pom.xml 5.3 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>${revision}${changelist}</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 56
    <dependency>
        <groupId>org.kohsuke</groupId>
        <artifactId>access-modifier-annotation</artifactId>
    </dependency>
57 58 59 60
    <dependency>
      <groupId>org.jenkins-ci</groupId>
      <artifactId>annotation-indexer</artifactId>
    </dependency>
61 62 63 64
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
    </dependency>
65 66
    <dependency>
      <groupId>junit</groupId>
J
Jesse Glick 已提交
67
      <artifactId>junit</artifactId>
C
cesarsotovalero 已提交
68
      <scope>test</scope>w
69 70 71 72
    </dependency>
    <dependency>
      <groupId>org.jvnet.localizer</groupId>
      <artifactId>localizer</artifactId>
D
Daniel Beck 已提交
73
      <version>1.26</version>
74 75
    </dependency>
    <dependency>
76 77
      <groupId>org.apache.sshd</groupId>
      <artifactId>sshd-core</artifactId>
78
      <version>1.7.0</version>
79 80
      <optional>true</optional> <!-- do not expose to core -->
    </dependency>
81 82 83 84 85 86
	<!-- ed25519 algorithm, see JENKINS-45318 -->
	<dependency>
  	  <groupId>net.i2p.crypto</groupId>
	  <artifactId>eddsa</artifactId>
	  <version>0.3.0</version>
	</dependency>
87 88
    <dependency>
      <groupId>org.slf4j</groupId>
89
      <artifactId>slf4j-jdk14</artifactId>
90 91
      <optional>true</optional> <!-- ditto -->
    </dependency>
92
    <dependency>
B
Basil Crow 已提交
93 94 95
      <groupId>com.github.spotbugs</groupId>
      <artifactId>spotbugs-annotations</artifactId>
      <optional>true</optional>
96
    </dependency>
97 98 99 100
    <dependency>
      <groupId>commons-lang</groupId>
      <artifactId>commons-lang</artifactId>
    </dependency>
101 102
  </dependencies>

103 104
  <build>
    <plugins>
105 106 107 108
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.22.2</version>
      </plugin>
109 110
      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
111
        <!-- version specified in grandparent pom -->
112 113 114
        <executions>
          <execution>
            <goals>
115
              <goal>single</goal>
116 117 118
            </goals>
            <phase>package</phase>
            <configuration>
119 120 121
              <descriptorRefs>
                <descriptorRef>jar-with-dependencies</descriptorRef>
              </descriptorRefs>
122 123 124 125
              <archive>
                <manifest>
                  <mainClass>hudson.cli.CLI</mainClass>
                </manifest>
126
                <manifestEntries>
127
                  <Jenkins-CLI-Version>${project.version}</Jenkins-CLI-Version>
128
                </manifestEntries>
129 130 131 132 133
              </archive>
            </configuration>
          </execution>
        </executions>
      </plugin>
K
kohsuke 已提交
134 135 136
      <plugin>
        <groupId>org.jvnet.localizer</groupId>
        <artifactId>maven-localizer-plugin</artifactId>
137
        <!-- version specified in grandparent pom -->
K
kohsuke 已提交
138 139 140 141 142 143 144 145
        <executions>
          <execution>
            <goals>
              <goal>generate</goal>
            </goals>
            <configuration>
              <fileMask>Messages.properties</fileMask>
              <outputDirectory>target/generated-sources/localizer</outputDirectory>
146
              <accessModifierAnnotations>true</accessModifierAnnotations>
K
kohsuke 已提交
147 148 149 150
            </configuration>
          </execution>
        </executions>
      </plugin>
151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
      <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>
169 170
    </plugins>
  </build>
171
</project>