|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 5 | + |
| 6 | + <modelVersion>4.0.0</modelVersion> |
| 7 | + <groupId>neuvector</groupId> |
| 8 | + <artifactId>neuvector</artifactId> |
| 9 | + <version>1.0.2-SNAPSHOT</version> |
| 10 | + |
| 11 | + <organization> |
| 12 | + <name>NeuVector</name> |
| 13 | + <url>https://www.neuvector.com/</url> |
| 14 | + </organization> |
| 15 | + |
| 16 | + <name>NeuVector</name> |
| 17 | + <description>This is the NeuVector image scanner plugin for Atlassian Bamboo.</description> |
| 18 | + <packaging>atlassian-plugin</packaging> |
| 19 | + |
| 20 | + <properties> |
| 21 | + <bamboo.version>8.0.0</bamboo.version> |
| 22 | + <bamboo.data.version>${bamboo.version}</bamboo.data.version> |
| 23 | + <amps.version>8.0.2</amps.version> |
| 24 | + <plugin.testrunner.version>2.0.1</plugin.testrunner.version> |
| 25 | + <atlassian.spring.scanner.version>1.2.13</atlassian.spring.scanner.version> |
| 26 | + <!-- This property ensures consistency between the key in atlassian-plugin.xml and the OSGi bundle's key. --> |
| 27 | + <atlassian.plugin.key>${project.groupId}.${project.artifactId}</atlassian.plugin.key> |
| 28 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 29 | + <maven.compiler.source>1.8</maven.compiler.source> |
| 30 | + <maven.compiler.target>1.8</maven.compiler.target> |
| 31 | + </properties> |
| 32 | + |
| 33 | + <dependencies> |
| 34 | + <dependency> |
| 35 | + <groupId>com.atlassian.bamboo</groupId> |
| 36 | + <artifactId>atlassian-bamboo-web</artifactId> |
| 37 | + <version>${bamboo.version}</version> |
| 38 | + <scope>provided</scope> |
| 39 | + </dependency> |
| 40 | + <dependency> |
| 41 | + <groupId>com.atlassian.plugin</groupId> |
| 42 | + <artifactId>atlassian-spring-scanner-annotation</artifactId> |
| 43 | + <version>${atlassian.spring.scanner.version}</version> |
| 44 | + <scope>provided</scope> |
| 45 | + </dependency> |
| 46 | + <dependency> |
| 47 | + <groupId>javax.inject</groupId> |
| 48 | + <artifactId>javax.inject</artifactId> |
| 49 | + <version>1</version> |
| 50 | + <scope>provided</scope> |
| 51 | + </dependency> |
| 52 | + <dependency> |
| 53 | + <groupId>org.apache.httpcomponents</groupId> |
| 54 | + <artifactId>httpclient</artifactId> |
| 55 | + <version>4.5.14</version> |
| 56 | + <scope>provided</scope> |
| 57 | + </dependency> |
| 58 | + <dependency> |
| 59 | + <groupId>junit</groupId> |
| 60 | + <artifactId>junit</artifactId> |
| 61 | + <version>4.10</version> |
| 62 | + <scope>test</scope> |
| 63 | + </dependency> |
| 64 | + <!-- DEPENDENCIES TO AVOID LOADER CONFLICT--> |
| 65 | + <dependency> |
| 66 | + <groupId>org.slf4j</groupId> |
| 67 | + <artifactId>slf4j-api</artifactId> |
| 68 | + <version>1.7.30</version> |
| 69 | + <scope>provided</scope> |
| 70 | + </dependency> |
| 71 | + <!-- WIRED TEST RUNNER DEPENDENCIES --> |
| 72 | + <dependency> |
| 73 | + <groupId>com.atlassian.plugins</groupId> |
| 74 | + <artifactId>atlassian-plugins-osgi-testrunner</artifactId> |
| 75 | + <version>${plugin.testrunner.version}</version> |
| 76 | + <scope>test</scope> |
| 77 | + </dependency> |
| 78 | + <dependency> |
| 79 | + <groupId>javax.ws.rs</groupId> |
| 80 | + <artifactId>jsr311-api</artifactId> |
| 81 | + <version>1.1.1</version> |
| 82 | + <scope>provided</scope> |
| 83 | + </dependency> |
| 84 | + <dependency> |
| 85 | + <groupId>com.google.code.gson</groupId> |
| 86 | + <artifactId>gson</artifactId> |
| 87 | + <version>2.10.1</version> |
| 88 | + </dependency> |
| 89 | + <dependency> |
| 90 | + <groupId>com.github.docker-java</groupId> |
| 91 | + <artifactId>docker-java-core</artifactId> |
| 92 | + <version>3.2.12</version> |
| 93 | + </dependency> |
| 94 | + <dependency> |
| 95 | + <groupId>com.github.docker-java</groupId> |
| 96 | + <artifactId>docker-java-transport-httpclient5</artifactId> |
| 97 | + <version>3.2.12</version> |
| 98 | + </dependency> |
| 99 | + <dependency> |
| 100 | + <groupId>commons-io</groupId> |
| 101 | + <artifactId>commons-io</artifactId> |
| 102 | + <version>2.6</version> <!-- Make sure this matches across compile and runtime environments --> |
| 103 | + </dependency> |
| 104 | + </dependencies> |
| 105 | + |
| 106 | + <build> |
| 107 | + <plugins> |
| 108 | + <plugin> |
| 109 | + <groupId>com.atlassian.maven.plugins</groupId> |
| 110 | + <artifactId>bamboo-maven-plugin</artifactId> |
| 111 | + <version>${amps.version}</version> |
| 112 | + <extensions>true</extensions> |
| 113 | + <configuration> |
| 114 | + <productVersion>${bamboo.version}</productVersion> |
| 115 | + <productDataVersion>${bamboo.data.version}</productDataVersion> |
| 116 | + <enableQuickReload>true</enableQuickReload> |
| 117 | + |
| 118 | + <!-- See here for an explanation of default instructions: --> |
| 119 | + <!-- https://developer.atlassian.com/docs/advanced-topics/configuration-of-instructions-in-atlassian-plugins --> |
| 120 | + <instructions> |
| 121 | + <Atlassian-Plugin-Key>${atlassian.plugin.key}</Atlassian-Plugin-Key> |
| 122 | + |
| 123 | + <!-- Add package to export here --> |
| 124 | + <Export-Package> |
| 125 | + neuvector.api, |
| 126 | + </Export-Package> |
| 127 | + |
| 128 | + <!-- Add package import here --> |
| 129 | + <Import-Package> |
| 130 | + org.springframework.osgi.*;resolution:="optional", |
| 131 | + org.eclipse.gemini.blueprint.*;resolution:="optional", |
| 132 | + *;version="0";resolution:="optional" |
| 133 | + </Import-Package> |
| 134 | + |
| 135 | + <!-- Ensure plugin is spring powered --> |
| 136 | + <Spring-Context>*</Spring-Context> |
| 137 | + </instructions> |
| 138 | + </configuration> |
| 139 | + </plugin> |
| 140 | + |
| 141 | + <plugin> |
| 142 | + <groupId>com.atlassian.plugin</groupId> |
| 143 | + <artifactId>atlassian-spring-scanner-maven-plugin</artifactId> |
| 144 | + <version>${atlassian.spring.scanner.version}</version> |
| 145 | + <executions> |
| 146 | + <execution> |
| 147 | + <goals> |
| 148 | + <goal>atlassian-spring-scanner</goal> |
| 149 | + </goals> |
| 150 | + <phase>process-classes</phase> |
| 151 | + </execution> |
| 152 | + </executions> |
| 153 | + <configuration> |
| 154 | + <scannedDependencies> |
| 155 | + <dependency> |
| 156 | + <groupId>com.atlassian.plugin</groupId> |
| 157 | + <artifactId>atlassian-spring-scanner-external-jar</artifactId> |
| 158 | + </dependency> |
| 159 | + </scannedDependencies> |
| 160 | + <verbose>false</verbose> |
| 161 | + </configuration> |
| 162 | + </plugin> |
| 163 | + </plugins> |
| 164 | + </build> |
| 165 | + |
| 166 | +<repositories> |
| 167 | + <repository> |
| 168 | + <id>atlassian-public</id> |
| 169 | + <url>https://packages.atlassian.com/maven/repository/public/</url> |
| 170 | + <releases> |
| 171 | + <enabled>true</enabled> |
| 172 | + </releases> |
| 173 | + <snapshots> |
| 174 | + <enabled>true</enabled> |
| 175 | + </snapshots> |
| 176 | + </repository> |
| 177 | +</repositories> |
| 178 | + |
| 179 | +</project> |
0 commit comments