Merge pull request 'Version 1.0' (#1) from SchoolTools/master into release
Reviewed-on: http://git.tilera.xyz:8001/SchoolTools/UntisClient/pulls/1
This commit is contained in:
commit
8f63561539
39
build.gradle
39
build.gradle
|
@ -1,10 +1,19 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'maven-publish'
|
||||
}
|
||||
|
||||
def getVersionName = { ->
|
||||
def stdout = new ByteArrayOutputStream()
|
||||
exec {
|
||||
commandLine 'git', 'describe', '--tags'
|
||||
standardOutput = stdout
|
||||
}
|
||||
return stdout.toString().trim()
|
||||
}
|
||||
|
||||
group 'ley'
|
||||
version '1.0-SNAPSHOT'
|
||||
|
||||
version getVersionName()
|
||||
sourceCompatibility = 1.8
|
||||
|
||||
repositories {
|
||||
|
@ -15,3 +24,29 @@ dependencies {
|
|||
compile group: 'com.github.briandilley.jsonrpc4j', name: 'jsonrpc4j', version: '1.5.3'
|
||||
testCompile group: 'junit', name: 'junit', version: '4.12'
|
||||
}
|
||||
|
||||
task sourcesJar(type: Jar) {
|
||||
from sourceSets.main.allJava
|
||||
}
|
||||
|
||||
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/"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue