- add support for artifact publishing
- fix incorrect terminology
This commit is contained in:
parent
11fc6a1e2f
commit
8350ec5ee5
|
@ -22,7 +22,7 @@ allprojects {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//cross-compilation stuff for Java 7
|
//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
|
project.ext.targetJavaHome = System.env.JDK_7_HOME
|
||||||
def javaExecutablesPath = new File(targetJavaHome, 'bin')
|
def javaExecutablesPath = new File(targetJavaHome, 'bin')
|
||||||
def javaExecutables = [:].withDefault { execName ->
|
def javaExecutables = [:].withDefault { execName ->
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
projectGroup=com.generalbytes.batm.public
|
||||||
|
projectVersion=1.0.4-SNAPSHOT
|
|
@ -1,6 +1,10 @@
|
||||||
apply plugin: "java"
|
apply plugin: "java"
|
||||||
apply plugin: "distribution"
|
apply plugin: "distribution"
|
||||||
apply plugin: "gb-gradle"
|
apply plugin: "gb-gradle"
|
||||||
|
apply plugin: 'maven-publish'
|
||||||
|
|
||||||
|
group = projectGroup
|
||||||
|
version = projectVersion
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
baseName 'batm_server_extensions_api'
|
baseName 'batm_server_extensions_api'
|
||||||
|
@ -20,3 +24,21 @@ dependencies {
|
||||||
compile(group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25')
|
compile(group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25')
|
||||||
compile(group: 'com.sun.mail', name: 'javax.mail', version: '1.4.7')
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,6 +1,10 @@
|
||||||
apply plugin: "java"
|
apply plugin: "java"
|
||||||
apply plugin: "distribution"
|
apply plugin: "distribution"
|
||||||
apply plugin: "gb-gradle"
|
apply plugin: "gb-gradle"
|
||||||
|
apply plugin: 'maven-publish'
|
||||||
|
|
||||||
|
group = projectGroup
|
||||||
|
version = projectVersion
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
baseName 'batm_server_extensions_extra'
|
baseName 'batm_server_extensions_extra'
|
||||||
|
@ -44,3 +48,21 @@ distributions {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
credentials {
|
||||||
|
username gbArtifactoryUser
|
||||||
|
password gbArtifactoryPassword
|
||||||
|
}
|
||||||
|
url gbArtifactoryUploadUrl
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
publications {
|
||||||
|
mavenJava(MavenPublication) {
|
||||||
|
from components.java
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue