Skip to content
Open
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ gradle-app.setting
*.ipr
*.iws
generator/generator
/.nb-gradle/
12 changes: 12 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ task javadocJar(type: Jar) {
publishing {
publications {
sdk(MavenPublication) {
groupId 'io.rancher'
artifactId 'rancher-java-sdk'
version '1.0.0'

pom.withXml {
asNode().dependencies.'*'.findAll() {
it.scope.text() == 'runtime' && project.configurations.compile.allDependencies.find { dep ->
dep.name == it.artifactId.text()
}
}.each { it.scope*.value = 'compile'}
}

from components.java
artifact sourceJar {
classifier 'sources'
Expand Down