diff options
| author | mo khan <mo.khan@gmail.com> | 2020-03-20 17:08:23 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-03-26 20:04:48 -0600 |
| commit | 38a2f3123bb4dc6ec2f7479a0e682c92b81a954b (patch) | |
| tree | 16feaf24e3c5ca71bd1c5d93a0504b2e18cf6919 /spec/fixtures/java | |
| parent | 4db9ccdf7a07654e7d546b5a6ab7467cf3818c93 (diff) | |
Install pip packages from a custom index
* Read PIP_INDEX_URL to identify where to download packages from
Diffstat (limited to 'spec/fixtures/java')
| -rw-r--r-- | spec/fixtures/java/build.gradle.kts | 11 | ||||
| -rw-r--r-- | spec/fixtures/java/custom-maven-settings.xml | 16 | ||||
| -rw-r--r-- | spec/fixtures/java/maven-multimodule/api/pom.xml | 26 | ||||
| -rw-r--r-- | spec/fixtures/java/maven-multimodule/model/pom.xml | 27 | ||||
| -rw-r--r-- | spec/fixtures/java/maven-multimodule/pom.xml | 27 | ||||
| -rw-r--r-- | spec/fixtures/java/maven-multimodule/web/pom.xml | 27 | ||||
| -rw-r--r-- | spec/fixtures/java/pom-public-gitlab-repository.xml | 16 |
7 files changed, 150 insertions, 0 deletions
diff --git a/spec/fixtures/java/build.gradle.kts b/spec/fixtures/java/build.gradle.kts new file mode 100644 index 0000000..494fc8b --- /dev/null +++ b/spec/fixtures/java/build.gradle.kts @@ -0,0 +1,11 @@ +plugins { + `java-library` +} +repositories { + jcenter() +} +dependencies { + api("org.apache.commons:commons-math3:3.6.1") + implementation("com.google.guava:guava:28.1-jre") + testImplementation("junit:junit:4.12") +} diff --git a/spec/fixtures/java/custom-maven-settings.xml b/spec/fixtures/java/custom-maven-settings.xml new file mode 100644 index 0000000..4fa5d16 --- /dev/null +++ b/spec/fixtures/java/custom-maven-settings.xml @@ -0,0 +1,16 @@ +<settings> + <profiles> + <profile> + <id>custom</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <repositories> + <repository> + <id>gitlab-maven</id> + <url>https://gitlab.com/api/v4/projects/17523603/packages/maven</url> + </repository> + </repositories> + </profile> + </profiles> +</settings> diff --git a/spec/fixtures/java/maven-multimodule/api/pom.xml b/spec/fixtures/java/maven-multimodule/api/pom.xml new file mode 100644 index 0000000..c621c1a --- /dev/null +++ b/spec/fixtures/java/maven-multimodule/api/pom.xml @@ -0,0 +1,26 @@ +<?xml version="1.0"?> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>com.gitlab.security_products.tests</groupId> + <artifactId>java-maven-multi-modules</artifactId> + <version>1.0-SNAPSHOT</version> + </parent> + <groupId>com.gitlab.security_products.tests</groupId> + <artifactId>api</artifactId> + <version>1.0-SNAPSHOT</version> + <name>api</name> + <url>http://maven.apache.org</url> + <dependencies> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>model</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.struts</groupId> + <artifactId>struts2-core</artifactId> + <version>2.5.1</version> + </dependency> + </dependencies> +</project> diff --git a/spec/fixtures/java/maven-multimodule/model/pom.xml b/spec/fixtures/java/maven-multimodule/model/pom.xml new file mode 100644 index 0000000..91b366b --- /dev/null +++ b/spec/fixtures/java/maven-multimodule/model/pom.xml @@ -0,0 +1,27 @@ +<?xml version="1.0"?> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>com.gitlab.security_products.tests</groupId> + <artifactId>java-maven-multi-modules</artifactId> + <version>1.0-SNAPSHOT</version> + </parent> + <groupId>com.gitlab.security_products.tests</groupId> + <artifactId>model</artifactId> + <version>1.0-SNAPSHOT</version> + <name>model</name> + <url>http://maven.apache.org</url> + <properties> + <maven.compiler.source>1.6</maven.compiler.source> + <maven.compiler.target>1.6</maven.compiler.target> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + </properties> + <dependencies> + <dependency> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-core</artifactId> + <version>2.8.2</version> + </dependency> + </dependencies> +</project> diff --git a/spec/fixtures/java/maven-multimodule/pom.xml b/spec/fixtures/java/maven-multimodule/pom.xml new file mode 100644 index 0000000..e84ad4a --- /dev/null +++ b/spec/fixtures/java/maven-multimodule/pom.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<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/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>com.gitlab.security_products.tests</groupId> + <artifactId>java-maven-multi-modules</artifactId> + <version>1.0-SNAPSHOT</version> + <packaging>pom</packaging> + <name>java-maven-multi-modules</name> + <modules> + <module>api</module> + <module>model</module> + <module>web</module> + </modules> + <dependencies> + <dependency> + <groupId>io.netty</groupId> + <artifactId>netty-all</artifactId> + <version>4.1.0.Final</version> + </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.1</version> + <scope>test</scope> + </dependency> + </dependencies> +</project>
\ No newline at end of file diff --git a/spec/fixtures/java/maven-multimodule/web/pom.xml b/spec/fixtures/java/maven-multimodule/web/pom.xml new file mode 100644 index 0000000..548e9fb --- /dev/null +++ b/spec/fixtures/java/maven-multimodule/web/pom.xml @@ -0,0 +1,27 @@ +<?xml version="1.0"?> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>com.gitlab.security_products.tests</groupId> + <artifactId>java-maven-multi-modules</artifactId> + <version>1.0-SNAPSHOT</version> + </parent> + <groupId>com.gitlab.security_products.tests</groupId> + <artifactId>web</artifactId> + <version>1.0-SNAPSHOT</version> + <name>web</name> + <url>http://maven.apache.org</url> + <properties> + <maven.compiler.source>1.6</maven.compiler.source> + <maven.compiler.target>1.6</maven.compiler.target> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + </properties> + <dependencies> + <dependency> + <groupId>com.fasterxml.jackson.dataformat</groupId> + <artifactId>jackson-dataformat-xml</artifactId> + <version>2.7.3</version> + </dependency> + </dependencies> +</project> diff --git a/spec/fixtures/java/pom-public-gitlab-repository.xml b/spec/fixtures/java/pom-public-gitlab-repository.xml new file mode 100644 index 0000000..4e57c79 --- /dev/null +++ b/spec/fixtures/java/pom-public-gitlab-repository.xml @@ -0,0 +1,16 @@ +<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"> + <modelVersion>4.0.0</modelVersion> + <groupId>com.gitlab.secure</groupId> + <artifactId>license-scanning</artifactId> + <packaging>jar</packaging> + <version>1.0-SNAPSHOT</version> + <name>example</name> + <url>http://maven.apache.org</url> + <dependencies> + <dependency> + <groupId>com.gitlab.xlgmokha</groupId> + <artifactId>mvn-spike</artifactId> + <version>1.2-SNAPSHOT</version> + </dependency> + </dependencies> +</project> |
