Skip to content

Commit

Permalink
[PF-722] attempt to get publishing again (#121)
Browse files Browse the repository at this point in the history
* attempt to get publishing again
  • Loading branch information
jaycarlton authored Mar 22, 2022
1 parent 6bb17e2 commit aa2e99d
Show file tree
Hide file tree
Showing 11 changed files with 968 additions and 18 deletions.
51 changes: 33 additions & 18 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,13 @@ repositories {
}
}

group = 'bio.terra.cloud-resource-lib'
group = 'bio.terra'
sourceCompatibility = JavaVersion.VERSION_11

configurations {
testImplementation.extendsFrom testFixturesImplementation
}

def artifactory_repo_key = System.getenv("ARTIFACTORY_REPO_KEY") != null ? System.getenv("ARTIFACTORY_REPO_KEY") : 'libs-snapshot-local'
def artifactory_username = System.getenv('ARTIFACTORY_USERNAME')
def artifactory_password = System.getenv('ARTIFACTORY_PASSWORD')

gradle.taskGraph.whenReady { taskGraph ->
if (taskGraph.hasTask(artifactoryPublish) &&
(artifactory_username == null || artifactory_password == null)) {
throw new GradleException("Set env vars ARTIFACTORY_USERNAME and ARTIFACTORY_PASSWORD to publish")
}
}

dependencies {
// Google dependencies - make sure we are using -jre and not android and use common bom
constraints {
Expand Down Expand Up @@ -156,15 +145,41 @@ task minniekenny(type: Exec) {

test.dependsOn minniekenny

def artifactory_repo_key = System.getenv("ARTIFACTORY_REPO_KEY") != null ? System.getenv("ARTIFACTORY_REPO_KEY") : 'libs-snapshot-local'
def artifactory_username = System.getenv('ARTIFACTORY_USERNAME')
def artifactory_password = System.getenv('ARTIFACTORY_PASSWORD')

gradle.taskGraph.whenReady { taskGraph ->
if (taskGraph.hasTask(artifactoryPublish) &&
(artifactory_username == null || artifactory_password == null)) {
throw new GradleException("Set env vars ARTIFACTORY_USERNAME and ARTIFACTORY_PASSWORD to publish")
}
}

// Upload Maven artifacts to Artifactory using the Artifcatory plugin.
artifactory {
publish {
contextUrl = 'https://broadinstitute.jfrog.io/broadinstitute/'
repository {
repoKey = "${artifactory_repo_key}"
username = "${artifactory_username}"
password = "${artifactory_password}"
}
defaults {
publications('terraCloudResourceLib')
publishArtifacts = true
publishPom = true
}
}
}

// Publish jar file to a Maven module/artifact using the maven-publish plugin.
publishing {
publications {
"$project.name"(MavenPublication) {
groupId project.group
artifactId project.name
version project.version
terraCloudResourceLib(MavenPublication) {
version = gradle.crlVersion
artifactId = rootProject.name
from components.java
suppressPomMetadataWarningsFor('testFixturesApiElements')
suppressPomMetadataWarningsFor('testFixturesApiRuntimeElements')
}
}
}
4 changes: 4 additions & 0 deletions gradle/dependency-locks/annotationProcessor.lockfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# 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.google.auto.value:auto-value:1.7.3
133 changes: 133 additions & 0 deletions gradle/dependency-locks/compileClasspath.lockfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
# 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.
bio.terra:terra-resource-janitor-client:0.7.2-SNAPSHOT
com.azure.resourcemanager:azure-resourcemanager-authorization:2.10.0
com.azure.resourcemanager:azure-resourcemanager-compute:2.10.0
com.azure.resourcemanager:azure-resourcemanager-containerinstance:2.3.0
com.azure.resourcemanager:azure-resourcemanager-msi:2.10.0
com.azure.resourcemanager:azure-resourcemanager-network:2.10.0
com.azure.resourcemanager:azure-resourcemanager-relay:1.0.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-resources:2.10.0
com.azure.resourcemanager:azure-resourcemanager-storage:2.10.0
com.azure:azure-core-http-netty:1.11.6
com.azure:azure-core-management:1.4.3
com.azure:azure-core:1.24.1
com.azure:azure-identity:1.4.3
com.azure:azure-storage-common:12.10.0
com.azure:azure-storage-file-share:12.8.0
com.diffplug.spotless:spotless-lib-extra:2.23.0
com.diffplug.spotless:spotless-lib:2.23.0
com.diffplug.spotless:spotless-plugin-gradle:6.3.0
com.fasterxml.jackson.core:jackson-annotations:2.13.1
com.fasterxml.jackson.core:jackson-core:2.13.1
com.fasterxml.jackson.core:jackson-databind:2.13.1
com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.13.1
com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.13.1
com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.13.1
com.fasterxml.jackson:jackson-bom:2.13.1
com.fasterxml.woodstox:woodstox-core:6.2.7
com.github.stephenc.jcip:jcip-annotations:1.0-1
com.google.api-client:google-api-client:1.33.1
com.google.api.grpc:proto-google-cloud-billing-v1:1.1.17
com.google.api.grpc:proto-google-cloud-pubsub-v1:1.94.3
com.google.api.grpc:proto-google-common-protos:2.1.0
com.google.api.grpc:proto-google-iam-v1:1.0.12
com.google.api:api-common:1.10.3
com.google.api:gax-grpc:1.63.0
com.google.api:gax-httpjson:0.80.0
com.google.api:gax:1.63.0
com.google.apis:google-api-services-bigquery:v2-rev20201030-1.30.10
com.google.apis:google-api-services-cloudresourcemanager:v3-rev20210411-1.31.0
com.google.apis:google-api-services-compute:v1-rev20220224-1.32.1
com.google.apis:google-api-services-dns:v2-rev20220217-1.32.1
com.google.apis:google-api-services-iam:v1-rev20220217-1.32.1
com.google.apis:google-api-services-notebooks:v1-rev20220125-1.32.1
com.google.apis:google-api-services-serviceusage:v1beta1-rev20210806-1.32.1
com.google.apis:google-api-services-storage:v1-rev20210127-1.31.0
com.google.auth:google-auth-library-credentials:0.25.5
com.google.auth:google-auth-library-oauth2-http:0.25.5
com.google.auto.value:auto-value-annotations:1.8.1
com.google.cloud:google-cloud-billing:1.1.17
com.google.cloud:google-cloud-core-http:1.94.8
com.google.cloud:google-cloud-core:1.94.8
com.google.cloud:google-cloud-pubsub:1.112.3
com.google.cloud:google-cloud-storage:1.113.16
com.google.cloud:libraries-bom:20.2.0
com.google.code.findbugs:jsr305:3.0.2
com.google.code.gson:gson:2.8.9
com.google.errorprone:error_prone_annotations:2.7.1
com.google.guava:failureaccess:1.0.1
com.google.guava:guava:31.0.1-jre
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava
com.google.http-client:google-http-client-apache-v2:1.41.1
com.google.http-client:google-http-client-appengine:1.39.2
com.google.http-client:google-http-client-gson:1.41.1
com.google.http-client:google-http-client-jackson2:1.39.2
com.google.http-client:google-http-client:1.41.1
com.google.j2objc:j2objc-annotations:1.3
com.google.oauth-client:google-oauth-client:1.33.0
com.google.protobuf:protobuf-java-util:3.15.8
com.google.protobuf:protobuf-java:3.15.8
com.lmax:disruptor:3.4.2
com.microsoft.azure:msal4j-persistence-extension:1.1.0
com.microsoft.azure:msal4j:1.11.0
com.nimbusds:content-type:2.1
com.nimbusds:lang-tag:1.5
com.nimbusds:nimbus-jose-jwt:9.9.3
com.nimbusds:oauth2-oidc-sdk:9.7
commons-codec:commons-codec:1.15
commons-logging:commons-logging:1.2
io.grpc:grpc-alts:1.37.0
io.grpc:grpc-api:1.37.0
io.grpc:grpc-auth:1.37.0
io.grpc:grpc-context:1.37.0
io.grpc:grpc-core:1.37.0
io.grpc:grpc-grpclb:1.37.0
io.grpc:grpc-netty-shaded:1.37.0
io.grpc:grpc-protobuf-lite:1.37.0
io.grpc:grpc-protobuf:1.37.0
io.grpc:grpc-stub:1.37.0
io.netty:netty-buffer:4.1.72.Final
io.netty:netty-codec-dns:4.1.72.Final
io.netty:netty-codec-http2:4.1.72.Final
io.netty:netty-codec-http:4.1.72.Final
io.netty:netty-codec-socks:4.1.72.Final
io.netty:netty-codec:4.1.72.Final
io.netty:netty-common:4.1.72.Final
io.netty:netty-handler-proxy:4.1.72.Final
io.netty:netty-handler:4.1.72.Final
io.netty:netty-resolver-dns-classes-macos:4.1.72.Final
io.netty:netty-resolver-dns-native-macos:4.1.72.Final
io.netty:netty-resolver-dns:4.1.72.Final
io.netty:netty-resolver:4.1.72.Final
io.netty:netty-tcnative-boringssl-static:2.0.46.Final
io.netty:netty-tcnative-classes:2.0.46.Final
io.netty:netty-transport-classes-epoll:4.1.72.Final
io.netty:netty-transport-classes-kqueue:4.1.72.Final
io.netty:netty-transport-native-epoll:4.1.72.Final
io.netty:netty-transport-native-kqueue:4.1.72.Final
io.netty:netty-transport-native-unix-common:4.1.72.Final
io.netty:netty-transport:4.1.72.Final
io.opencensus:opencensus-api:0.30.0
io.opencensus:opencensus-contrib-http-util:0.30.0
io.opencensus:opencensus-impl-core:0.28.3
io.opencensus:opencensus-impl:0.28.3
io.projectreactor.netty:reactor-netty-core:1.0.14
io.projectreactor.netty:reactor-netty-http:1.0.14
io.projectreactor:reactor-core:3.4.13
javax.annotation:javax.annotation-api:1.3.2
net.java.dev.jna:jna-platform:5.6.0
net.java.dev.jna:jna:5.6.0
net.minidev:accessors-smart:2.4.7
net.minidev:json-smart:2.4.7
org.apache.httpcomponents:httpclient:4.5.13
org.apache.httpcomponents:httpcore:4.4.15
org.checkerframework:checker-compat-qual:2.5.5
org.checkerframework:checker-qual:3.12.0
org.codehaus.woodstox:stax2-api:4.2.1
org.conscrypt:conscrypt-openjdk-uber:2.5.1
org.ow2.asm:asm:9.1
org.reactivestreams:reactive-streams:1.0.3
org.slf4j:slf4j-api:1.7.32
org.threeten:threetenbp:1.5.1
158 changes: 158 additions & 0 deletions gradle/dependency-locks/runtimeClasspath.lockfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
# 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.
bio.terra:terra-resource-janitor-client:0.7.2-SNAPSHOT
com.azure.resourcemanager:azure-resourcemanager-authorization:2.10.0
com.azure.resourcemanager:azure-resourcemanager-compute:2.10.0
com.azure.resourcemanager:azure-resourcemanager-containerinstance:2.3.0
com.azure.resourcemanager:azure-resourcemanager-msi:2.10.0
com.azure.resourcemanager:azure-resourcemanager-network:2.10.0
com.azure.resourcemanager:azure-resourcemanager-relay:1.0.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-resources:2.10.0
com.azure.resourcemanager:azure-resourcemanager-storage:2.10.0
com.azure:azure-core-http-netty:1.11.6
com.azure:azure-core-management:1.4.3
com.azure:azure-core:1.24.1
com.azure:azure-identity:1.4.3
com.azure:azure-storage-common:12.10.0
com.azure:azure-storage-file-share:12.8.0
com.diffplug.durian:durian-collect:1.2.0
com.diffplug.durian:durian-core:1.2.0
com.diffplug.durian:durian-io:1.2.0
com.diffplug.spotless:spotless-lib-extra:2.23.0
com.diffplug.spotless:spotless-lib:2.23.0
com.diffplug.spotless:spotless-plugin-gradle:6.3.0
com.fasterxml.jackson.core:jackson-annotations:2.13.1
com.fasterxml.jackson.core:jackson-core:2.13.1
com.fasterxml.jackson.core:jackson-databind:2.13.1
com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.13.1
com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.13.1
com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.13.1
com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.13.1
com.fasterxml.jackson:jackson-bom:2.13.1
com.fasterxml.woodstox:woodstox-core:6.2.7
com.github.stephenc.jcip:jcip-annotations:1.0-1
com.google.android:annotations:4.1.1.4
com.google.api-client:google-api-client:1.33.1
com.google.api.grpc:proto-google-cloud-billing-v1:1.1.17
com.google.api.grpc:proto-google-cloud-pubsub-v1:1.94.3
com.google.api.grpc:proto-google-common-protos:2.1.0
com.google.api.grpc:proto-google-iam-v1:1.0.12
com.google.api:api-common:1.10.3
com.google.api:gax-grpc:1.63.0
com.google.api:gax-httpjson:0.80.0
com.google.api:gax:1.63.0
com.google.apis:google-api-services-bigquery:v2-rev20201030-1.30.10
com.google.apis:google-api-services-cloudresourcemanager:v3-rev20210411-1.31.0
com.google.apis:google-api-services-compute:v1-rev20220224-1.32.1
com.google.apis:google-api-services-dns:v2-rev20220217-1.32.1
com.google.apis:google-api-services-iam:v1-rev20220217-1.32.1
com.google.apis:google-api-services-notebooks:v1-rev20220125-1.32.1
com.google.apis:google-api-services-serviceusage:v1beta1-rev20210806-1.32.1
com.google.apis:google-api-services-storage:v1-rev20210127-1.31.0
com.google.auth:google-auth-library-credentials:0.25.5
com.google.auth:google-auth-library-oauth2-http:0.25.5
com.google.auto.value:auto-value-annotations:1.8.1
com.google.cloud:google-cloud-billing:1.1.17
com.google.cloud:google-cloud-core-http:1.94.8
com.google.cloud:google-cloud-core:1.94.8
com.google.cloud:google-cloud-pubsub:1.112.3
com.google.cloud:google-cloud-storage:1.113.16
com.google.cloud:libraries-bom:20.2.0
com.google.code.findbugs:jsr305:3.0.2
com.google.code.gson:gson:2.8.9
com.google.errorprone:error_prone_annotations:2.7.1
com.google.guava:failureaccess:1.0.1
com.google.guava:guava:31.0.1-jre
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava
com.google.http-client:google-http-client-apache-v2:1.41.1
com.google.http-client:google-http-client-appengine:1.39.2
com.google.http-client:google-http-client-gson:1.41.1
com.google.http-client:google-http-client-jackson2:1.39.2
com.google.http-client:google-http-client:1.41.1
com.google.j2objc:j2objc-annotations:1.3
com.google.oauth-client:google-oauth-client:1.33.0
com.google.protobuf:protobuf-java-util:3.15.8
com.google.protobuf:protobuf-java:3.15.8
com.googlecode.concurrent-trees:concurrent-trees:2.6.1
com.googlecode.javaewah:JavaEWAH:1.1.12
com.lmax:disruptor:3.4.2
com.microsoft.azure:msal4j-persistence-extension:1.1.0
com.microsoft.azure:msal4j:1.11.0
com.nimbusds:content-type:2.1
com.nimbusds:lang-tag:1.5
com.nimbusds:nimbus-jose-jwt:9.9.3
com.nimbusds:oauth2-oidc-sdk:9.7
commons-codec:commons-codec:1.15
commons-logging:commons-logging:1.2
io.grpc:grpc-alts:1.37.0
io.grpc:grpc-api:1.37.0
io.grpc:grpc-auth:1.37.0
io.grpc:grpc-context:1.37.0
io.grpc:grpc-core:1.37.0
io.grpc:grpc-grpclb:1.37.0
io.grpc:grpc-netty-shaded:1.37.0
io.grpc:grpc-protobuf-lite:1.37.0
io.grpc:grpc-protobuf:1.37.0
io.grpc:grpc-stub:1.37.0
io.netty:netty-buffer:4.1.72.Final
io.netty:netty-codec-dns:4.1.72.Final
io.netty:netty-codec-http2:4.1.72.Final
io.netty:netty-codec-http:4.1.72.Final
io.netty:netty-codec-socks:4.1.72.Final
io.netty:netty-codec:4.1.72.Final
io.netty:netty-common:4.1.72.Final
io.netty:netty-handler-proxy:4.1.72.Final
io.netty:netty-handler:4.1.72.Final
io.netty:netty-resolver-dns-classes-macos:4.1.72.Final
io.netty:netty-resolver-dns-native-macos:4.1.72.Final
io.netty:netty-resolver-dns:4.1.72.Final
io.netty:netty-resolver:4.1.72.Final
io.netty:netty-tcnative-boringssl-static:2.0.46.Final
io.netty:netty-tcnative-classes:2.0.46.Final
io.netty:netty-transport-classes-epoll:4.1.72.Final
io.netty:netty-transport-classes-kqueue:4.1.72.Final
io.netty:netty-transport-native-epoll:4.1.72.Final
io.netty:netty-transport-native-kqueue:4.1.72.Final
io.netty:netty-transport-native-unix-common:4.1.72.Final
io.netty:netty-transport:4.1.72.Final
io.opencensus:opencensus-api:0.30.0
io.opencensus:opencensus-contrib-http-util:0.30.0
io.opencensus:opencensus-impl-core:0.28.3
io.opencensus:opencensus-impl:0.28.3
io.perfmark:perfmark-api:0.23.0
io.projectreactor.netty:reactor-netty-core:1.0.14
io.projectreactor.netty:reactor-netty-http:1.0.14
io.projectreactor:reactor-core:3.4.13
io.swagger.core.v3:swagger-annotations:2.1.5
jakarta.activation:jakarta.activation-api:1.2.2
jakarta.annotation:jakarta.annotation-api:1.3.5
jakarta.ws.rs:jakarta.ws.rs-api:2.1.6
jakarta.xml.bind:jakarta.xml.bind-api:2.3.3
javax.annotation:javax.annotation-api:1.3.2
net.java.dev.jna:jna-platform:5.6.0
net.java.dev.jna:jna:5.6.0
net.minidev:accessors-smart:2.4.7
net.minidev:json-smart:2.4.7
org.apache.httpcomponents:httpclient:4.5.13
org.apache.httpcomponents:httpcore:4.4.15
org.checkerframework:checker-compat-qual:2.5.5
org.checkerframework:checker-qual:3.12.0
org.codehaus.groovy:groovy-xml:3.0.9
org.codehaus.groovy:groovy:3.0.9
org.codehaus.mojo:animal-sniffer-annotations:1.20
org.codehaus.woodstox:stax2-api:4.2.1
org.conscrypt:conscrypt-openjdk-uber:2.5.1
org.eclipse.jgit:org.eclipse.jgit:5.13.0.202109080827-r
org.glassfish.hk2.external:jakarta.inject:2.6.1
org.glassfish.hk2:osgi-resource-locator:1.0.3
org.glassfish.jersey.core:jersey-client:2.32
org.glassfish.jersey.core:jersey-common:2.32
org.glassfish.jersey.ext:jersey-entity-filtering:2.32
org.glassfish.jersey.media:jersey-media-json-jackson:2.32
org.glassfish.jersey.media:jersey-media-multipart:2.32
org.jvnet.mimepull:mimepull:1.9.13
org.ow2.asm:asm:9.1
org.reactivestreams:reactive-streams:1.0.3
org.slf4j:slf4j-api:1.7.32
org.threeten:threetenbp:1.5.1
3 changes: 3 additions & 0 deletions gradle/dependency-locks/testAnnotationProcessor.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.
Loading

0 comments on commit aa2e99d

Please sign in to comment.