Moving towards Maven Release.
This commit is contained in:
parent
ac4dab9d7e
commit
ed193d9fc0
|
@ -1,6 +1,7 @@
|
||||||
# ---> Gradle
|
# ---> Gradle
|
||||||
.gradle
|
.gradle
|
||||||
/build/
|
/build/
|
||||||
|
gradle.properties
|
||||||
|
|
||||||
# Ignore Gradle GUI config
|
# Ignore Gradle GUI config
|
||||||
gradle-app.setting
|
gradle-app.setting
|
||||||
|
|
43
build.gradle
43
build.gradle
|
@ -8,16 +8,17 @@ tasks.withType(JavaCompile) {
|
||||||
|
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
|
apply plugin: 'maven'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
mavenCentral()
|
||||||
flatDir {
|
maven {
|
||||||
dirs 'libs'
|
url = "https://maven.speiger.com/repository/main"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
archivesBaseName = 'Primitive Collections'
|
archivesBaseName = 'Primitive Collections'
|
||||||
version = 'Beta';
|
version = '0.2.0';
|
||||||
|
|
||||||
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
|
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
|
||||||
|
|
||||||
|
@ -53,7 +54,7 @@ configurations {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'SimpleCodeGenerator:Simple Code Generator:1.0.1'
|
compile 'de.speiger:Simple-Code-Generator:1.0.2'
|
||||||
testImplementation 'junit:junit:4.12'
|
testImplementation 'junit:junit:4.12'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,7 +77,6 @@ task srcJar(type: Jar) {
|
||||||
|
|
||||||
javadoc.failOnError = false
|
javadoc.failOnError = false
|
||||||
javadoc.options.memberLevel = JavadocMemberLevel.PUBLIC
|
javadoc.options.memberLevel = JavadocMemberLevel.PUBLIC
|
||||||
//javadoc.options.showAll()
|
|
||||||
javadoc.options.quiet()
|
javadoc.options.quiet()
|
||||||
|
|
||||||
artifacts {
|
artifacts {
|
||||||
|
@ -86,4 +86,35 @@ artifacts {
|
||||||
|
|
||||||
test {
|
test {
|
||||||
useJUnit()
|
useJUnit()
|
||||||
|
}
|
||||||
|
|
||||||
|
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'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue