Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dependency verification and lock files #152

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ x64Mac : [
]
```

If dependencies are updated then the lock file and verification data must be updated:

```shell
./gradlew dependencies --write-locks; ./gradlew --write-verification-metadata sha256
```

### Data fields

NOTE: When the `type` field implies a map, the `String` key of the inner map is the variant for that field. E.g:
Expand Down
4 changes: 4 additions & 0 deletions pipelines/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ apply plugin: 'groovy'
sourceCompatibility = 1.8
targetCompatibility = 1.8

dependencyLocking {
lockAllConfigurations()
}

sourceSets {
main {
groovy {
Expand Down
1 change: 1 addition & 0 deletions pipelines/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.gradle.dependency.verification.console=verbose
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This is a Gradle generated file for dependency locking.
# Manual edits can break the build and are not advised.
# This file is expected to be part of source control.
32 changes: 32 additions & 0 deletions pipelines/gradle/dependency-locks/compileClasspath.lockfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This is a Gradle generated file for dependency locking.
# Manual edits can break the build and are not advised.
# This file is expected to be part of source control.
com.github.javaparser:javaparser-core:3.15.22
junit:junit:4.13
org.apache.ant:ant:1.10.8
org.codehaus.groovy:groovy-all:3.0.4
org.codehaus.groovy:groovy-ant:3.0.4
org.codehaus.groovy:groovy-astbuilder:3.0.4
org.codehaus.groovy:groovy-cli-picocli:3.0.4
org.codehaus.groovy:groovy-console:3.0.4
org.codehaus.groovy:groovy-datetime:3.0.4
org.codehaus.groovy:groovy-docgenerator:3.0.4
org.codehaus.groovy:groovy-groovydoc:3.0.4
org.codehaus.groovy:groovy-groovysh:3.0.4
org.codehaus.groovy:groovy-jmx:3.0.4
org.codehaus.groovy:groovy-json:3.0.4
org.codehaus.groovy:groovy-jsr223:3.0.4
org.codehaus.groovy:groovy-macro:3.0.4
org.codehaus.groovy:groovy-nio:3.0.4
org.codehaus.groovy:groovy-servlet:3.0.4
org.codehaus.groovy:groovy-sql:3.0.4
org.codehaus.groovy:groovy-swing:3.0.4
org.codehaus.groovy:groovy-templates:3.0.4
org.codehaus.groovy:groovy-test-junit5:3.0.4
org.codehaus.groovy:groovy-test:3.0.4
org.codehaus.groovy:groovy-testng:3.0.4
org.codehaus.groovy:groovy-xml:3.0.4
org.codehaus.groovy:groovy:3.0.4
org.hamcrest:hamcrest-core:1.3
org.jenkins-ci.main:jenkins-core:2.85
org.jenkins-ci.plugins.workflow:workflow-step-api:2.22
47 changes: 47 additions & 0 deletions pipelines/gradle/dependency-locks/runtimeClasspath.lockfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This is a Gradle generated file for dependency locking.
# Manual edits can break the build and are not advised.
# This file is expected to be part of source control.
com.beust:jcommander:1.72
com.github.javaparser:javaparser-core:3.15.22
com.thoughtworks.qdox:qdox:1.12.1
info.picocli:picocli:4.3.2
jline:jline:2.14.6
junit:junit:4.13
org.apache.ant:ant-antlr:1.10.8
org.apache.ant:ant-junit:1.10.8
org.apache.ant:ant-launcher:1.10.8
org.apache.ant:ant:1.10.8
org.codehaus.groovy:groovy-all:3.0.4
org.codehaus.groovy:groovy-ant:3.0.4
org.codehaus.groovy:groovy-astbuilder:3.0.4
org.codehaus.groovy:groovy-cli-picocli:3.0.4
org.codehaus.groovy:groovy-console:3.0.4
org.codehaus.groovy:groovy-datetime:3.0.4
org.codehaus.groovy:groovy-docgenerator:3.0.4
org.codehaus.groovy:groovy-groovydoc:3.0.4
org.codehaus.groovy:groovy-groovysh:3.0.4
org.codehaus.groovy:groovy-jmx:3.0.4
org.codehaus.groovy:groovy-json:3.0.4
org.codehaus.groovy:groovy-jsr223:3.0.4
org.codehaus.groovy:groovy-macro:3.0.4
org.codehaus.groovy:groovy-nio:3.0.4
org.codehaus.groovy:groovy-servlet:3.0.4
org.codehaus.groovy:groovy-sql:3.0.4
org.codehaus.groovy:groovy-swing:3.0.4
org.codehaus.groovy:groovy-templates:3.0.4
org.codehaus.groovy:groovy-test-junit5:3.0.4
org.codehaus.groovy:groovy-test:3.0.4
org.codehaus.groovy:groovy-testng:3.0.4
org.codehaus.groovy:groovy-xml:3.0.4
org.codehaus.groovy:groovy:3.0.4
org.hamcrest:hamcrest-core:1.3
org.jenkins-ci.main:jenkins-core:2.85
org.jenkins-ci.plugins.workflow:workflow-step-api:2.22
org.junit.jupiter:junit-jupiter-api:5.6.2
org.junit.jupiter:junit-jupiter-engine:5.6.2
org.junit.platform:junit-platform-commons:1.6.2
org.junit.platform:junit-platform-engine:1.6.2
org.junit.platform:junit-platform-launcher:1.6.2
org.junit:junit-bom:5.6.2
org.opentest4j:opentest4j:1.2.0
org.testng:testng:7.2.0
3 changes: 3 additions & 0 deletions pipelines/gradle/dependency-locks/shadow.lockfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This is a Gradle generated file for dependency locking.
# Manual edits can break the build and are not advised.
# This file is expected to be part of source control.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This is a Gradle generated file for dependency locking.
# Manual edits can break the build and are not advised.
# This file is expected to be part of source control.
36 changes: 36 additions & 0 deletions pipelines/gradle/dependency-locks/testCompileClasspath.lockfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This is a Gradle generated file for dependency locking.
# Manual edits can break the build and are not advised.
# This file is expected to be part of source control.
com.github.javaparser:javaparser-core:3.15.22
junit:junit:4.13
org.apache.ant:ant:1.10.8
org.apiguardian:apiguardian-api:1.0.0
org.codehaus.groovy:groovy-all:3.0.4
org.codehaus.groovy:groovy-ant:3.0.4
org.codehaus.groovy:groovy-astbuilder:3.0.4
org.codehaus.groovy:groovy-cli-picocli:3.0.4
org.codehaus.groovy:groovy-console:3.0.4
org.codehaus.groovy:groovy-datetime:3.0.4
org.codehaus.groovy:groovy-docgenerator:3.0.4
org.codehaus.groovy:groovy-groovydoc:3.0.4
org.codehaus.groovy:groovy-groovysh:3.0.4
org.codehaus.groovy:groovy-jmx:3.0.4
org.codehaus.groovy:groovy-json:3.0.4
org.codehaus.groovy:groovy-jsr223:3.0.4
org.codehaus.groovy:groovy-macro:3.0.4
org.codehaus.groovy:groovy-nio:3.0.4
org.codehaus.groovy:groovy-servlet:3.0.4
org.codehaus.groovy:groovy-sql:3.0.4
org.codehaus.groovy:groovy-swing:3.0.4
org.codehaus.groovy:groovy-templates:3.0.4
org.codehaus.groovy:groovy-test-junit5:3.0.4
org.codehaus.groovy:groovy-test:3.0.4
org.codehaus.groovy:groovy-testng:3.0.4
org.codehaus.groovy:groovy-xml:3.0.4
org.codehaus.groovy:groovy:3.0.4
org.hamcrest:hamcrest-core:1.3
org.jenkins-ci.main:jenkins-core:2.85
org.jenkins-ci.plugins.workflow:workflow-step-api:2.22
org.junit.jupiter:junit-jupiter-api:5.4.1
org.junit.platform:junit-platform-commons:1.4.1
org.opentest4j:opentest4j:1.1.1
48 changes: 48 additions & 0 deletions pipelines/gradle/dependency-locks/testRuntimeClasspath.lockfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# This is a Gradle generated file for dependency locking.
# Manual edits can break the build and are not advised.
# This file is expected to be part of source control.
com.beust:jcommander:1.72
com.github.javaparser:javaparser-core:3.15.22
com.thoughtworks.qdox:qdox:1.12.1
info.picocli:picocli:4.3.2
jline:jline:2.14.6
junit:junit:4.13
org.apache.ant:ant-antlr:1.10.8
org.apache.ant:ant-junit:1.10.8
org.apache.ant:ant-launcher:1.10.8
org.apache.ant:ant:1.10.8
org.apiguardian:apiguardian-api:1.1.0
org.codehaus.groovy:groovy-all:3.0.4
org.codehaus.groovy:groovy-ant:3.0.4
org.codehaus.groovy:groovy-astbuilder:3.0.4
org.codehaus.groovy:groovy-cli-picocli:3.0.4
org.codehaus.groovy:groovy-console:3.0.4
org.codehaus.groovy:groovy-datetime:3.0.4
org.codehaus.groovy:groovy-docgenerator:3.0.4
org.codehaus.groovy:groovy-groovydoc:3.0.4
org.codehaus.groovy:groovy-groovysh:3.0.4
org.codehaus.groovy:groovy-jmx:3.0.4
org.codehaus.groovy:groovy-json:3.0.4
org.codehaus.groovy:groovy-jsr223:3.0.4
org.codehaus.groovy:groovy-macro:3.0.4
org.codehaus.groovy:groovy-nio:3.0.4
org.codehaus.groovy:groovy-servlet:3.0.4
org.codehaus.groovy:groovy-sql:3.0.4
org.codehaus.groovy:groovy-swing:3.0.4
org.codehaus.groovy:groovy-templates:3.0.4
org.codehaus.groovy:groovy-test-junit5:3.0.4
org.codehaus.groovy:groovy-test:3.0.4
org.codehaus.groovy:groovy-testng:3.0.4
org.codehaus.groovy:groovy-xml:3.0.4
org.codehaus.groovy:groovy:3.0.4
org.hamcrest:hamcrest-core:1.3
org.jenkins-ci.main:jenkins-core:2.85
org.jenkins-ci.plugins.workflow:workflow-step-api:2.22
org.junit.jupiter:junit-jupiter-api:5.6.2
org.junit.jupiter:junit-jupiter-engine:5.6.2
org.junit.platform:junit-platform-commons:1.6.2
org.junit.platform:junit-platform-engine:1.6.2
org.junit.platform:junit-platform-launcher:1.6.2
org.junit:junit-bom:5.6.2
org.opentest4j:opentest4j:1.2.0
org.testng:testng:7.2.0
Loading
Loading