2021-01-18 15:51:59 +01:00
|
|
|
apply plugin: 'java-library'
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
|
|
|
archivesBaseName = 'Simple Code Generator'
|
2022-05-21 19:36:25 +02:00
|
|
|
version = '1.1.1'
|
2021-06-22 14:19:09 +02:00
|
|
|
apply plugin: 'maven'
|
2021-01-18 15:51:59 +01:00
|
|
|
|
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.encoding = 'UTF-8'
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
}
|
|
|
|
|
|
|
|
task srcJar(type: Jar) {
|
|
|
|
from sourceSets.main.allSource
|
|
|
|
classifier = 'sources'
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
archives srcJar
|
2021-06-22 14:19:09 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-01-11 13:48:39 +01:00
|
|
|
}
|