UntisClient/build.gradle

53 lines
1 KiB
Groovy
Raw Normal View History

2020-01-18 12:40:41 +01:00
plugins {
id 'java'
2020-01-19 15:42:30 +01:00
id 'maven-publish'
2020-01-18 12:40:41 +01:00
}
2020-01-19 15:42:30 +01:00
def getVersionName = { ->
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'describe', '--tags'
standardOutput = stdout
}
return stdout.toString().trim()
}
2020-01-18 12:40:41 +01:00
2020-01-19 15:42:30 +01:00
group 'ley'
version getVersionName()
2020-01-18 12:40:41 +01:00
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile group: 'com.github.briandilley.jsonrpc4j', name: 'jsonrpc4j', version: '1.5.3'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
2020-01-19 15:00:12 +01:00
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
}
2020-01-19 15:42:30 +01:00
publishing {
publications {
maven(MavenPublication) {
groupId = project.group
artifactId = project.name
version = project.version
from components.java
}
}
repositories {
maven {
credentials {
username = "$usr"
password = "$pwd"
}
url = "http://git.tilera.xyz:8002/repository/maven-releases/"
}
}
}