Skip to content

Commit

Permalink
- add support for artifact publishing
Browse files Browse the repository at this point in the history
- fix incorrect terminology
  • Loading branch information
rpanak-generalbytes committed Apr 25, 2018
1 parent 11fc6a1 commit 8350ec5
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ allprojects {
}
}
//cross-compilation stuff for Java 7
assert (System.env.JDK_7_HOME != null): "Set environment property JDK_7_HOME"
assert (System.env.JDK_7_HOME != null): "Set environment variable JDK_7_HOME"
project.ext.targetJavaHome = System.env.JDK_7_HOME
def javaExecutablesPath = new File(targetJavaHome, 'bin')
def javaExecutables = [:].withDefault { execName ->
Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
projectGroup=com.generalbytes.batm.public
projectVersion=1.0.4-SNAPSHOT
22 changes: 22 additions & 0 deletions server_extensions_api/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
apply plugin: "java"
apply plugin: "distribution"
apply plugin: "gb-gradle"
apply plugin: 'maven-publish'

group = projectGroup
version = projectVersion

jar {
baseName 'batm_server_extensions_api'
Expand All @@ -20,3 +24,21 @@ dependencies {
compile(group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25')
compile(group: 'com.sun.mail', name: 'javax.mail', version: '1.4.7')
}

publishing {
repositories {
maven {
credentials {
username gbArtifactoryUser
password gbArtifactoryPassword
}
url gbArtifactoryUploadUrl
}
}

publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
22 changes: 22 additions & 0 deletions server_extensions_extra/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
apply plugin: "java"
apply plugin: "distribution"
apply plugin: "gb-gradle"
apply plugin: 'maven-publish'

group = projectGroup
version = projectVersion

jar {
baseName 'batm_server_extensions_extra'
Expand Down Expand Up @@ -44,3 +48,21 @@ distributions {
}
}
}

publishing {
repositories {
maven {
credentials {
username gbArtifactoryUser
password gbArtifactoryPassword
}
url gbArtifactoryUploadUrl
}
}

publications {
mavenJava(MavenPublication) {
from components.java
}
}
}

0 comments on commit 8350ec5

Please sign in to comment.