Skip to content

Commit

Permalink
Configure release of javaagent artifact
Browse files Browse the repository at this point in the history
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
  • Loading branch information
pavolloffay committed Dec 21, 2020
1 parent f69217e commit 88c2b11
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ plugins {
id "com.github.spotbugs" version "4.6.0" apply false

id "net.ltgt.errorprone" version "1.3.0" apply false
id("org.hypertrace.publish-plugin") version "0.3.3" apply false
}

release {
Expand Down
21 changes: 13 additions & 8 deletions javaagent/javaagent.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,24 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

plugins {
id "com.github.johnrengelman.shadow"
id "org.hypertrace.publish-plugin"
}

description = 'OpenTelemetry Javaagent'

group = 'io.opentelemetry.javaagent'

apply from: "$rootDir/gradle/java.gradle"
apply from: "$rootDir/gradle/publish.gradle"
//apply from: "$rootDir/gradle/publish.gradle"

configurations {
shadowInclude
}

hypertracePublish {
license.set(org.hypertrace.gradle.publishing.License.APACHE_2_0)
}

jar {
manifest {
attributes(
Expand Down Expand Up @@ -62,13 +67,13 @@ task lightShadow(type: ShadowJar) {
with isolateSpec(projectsWithShadowJar)
}

publishing {
publications {
maven(MavenPublication) {
artifact lightShadow
}
}
}
//publishing {
// publications {
// maven(MavenPublication) {
// artifact lightShadow
// }
// }
//}

tasks.withType(ShadowJar).configureEach {
configurations = [project.configurations.shadowInclude]
Expand Down
9 changes: 9 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
pluginManagement{
repositories {
gradlePluginPortal()
maven {
url 'https://dl.bintray.com/hypertrace/maven'
}
}
}

plugins {
id 'com.gradle.enterprise' version '3.5'
id 'com.github.burrunan.s3-build-cache' version '1.1'
Expand Down

0 comments on commit 88c2b11

Please sign in to comment.