56 lines
1.1 KiB
Groovy
56 lines
1.1 KiB
Groovy
apply plugin: 'java-library'
|
|
|
|
repositories {
|
|
jcenter()
|
|
}
|
|
|
|
archivesBaseName = 'Simple Code Generator'
|
|
version = '1.0.4'
|
|
apply plugin: 'maven'
|
|
|
|
tasks.withType(JavaCompile) {
|
|
options.encoding = 'UTF-8'
|
|
}
|
|
|
|
dependencies {
|
|
}
|
|
|
|
task srcJar(type: Jar) {
|
|
from sourceSets.main.allSource
|
|
classifier = 'sources'
|
|
}
|
|
|
|
artifacts {
|
|
archives srcJar
|
|
}
|
|
|
|
uploadArchives {
|
|
repositories.mavenDeployer {
|
|
repository(url: 'https://maven.speiger.com/repository/main') {
|
|
authentication(userName: project.properties.mavenUser, password: project.properties.mavenPassword)
|
|
}
|
|
snapshotRepository(url: 'https://maven.speiger.com/repository/main') {
|
|
authentication(userName: project.properties.mavenUser, password: project.properties.mavenPassword)
|
|
}
|
|
pom {
|
|
version = project.version
|
|
artifactId = project.archivesBaseName.replace(" ", "-")
|
|
groupId = 'de.speiger'
|
|
project {
|
|
licenses {
|
|
license {
|
|
name = 'The Apache License, Version 2.0'
|
|
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
|
}
|
|
}
|
|
developers {
|
|
developer {
|
|
id = 'speiger'
|
|
name = 'Speiger'
|
|
email = 'speiger@gmx.net'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |