Compare commits
12 Commits
Author | SHA1 | Date | |
---|---|---|---|
a08017f8fb | |||
51428641ef | |||
9ab205db5c | |||
70ee07d975 | |||
1f9850323f | |||
72205cc5ab | |||
c63c3751b6 | |||
7c86c2908a | |||
88be5ee431 | |||
57658b2cf8 | |||
a3654076d1 | |||
9a0b1d5cee |
107
build.gradle
107
build.gradle
@ -1,7 +1,15 @@
|
|||||||
apply plugin: 'java'
|
buildscript {
|
||||||
apply plugin: 'maven-publish'
|
repositories {
|
||||||
apply plugin: 'com.bmuschko.nexus'
|
jcenter()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id 'java'
|
||||||
|
id 'maven-publish'
|
||||||
|
}
|
||||||
|
|
||||||
|
//create a single Jar with all dependencies
|
||||||
group = 'de.openea'
|
group = 'de.openea'
|
||||||
version = '2.2.0'
|
version = '2.2.0'
|
||||||
|
|
||||||
@ -10,8 +18,6 @@ description = "EvA2"
|
|||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
targetCompatibility = 1.8
|
targetCompatibility = 1.8
|
||||||
|
|
||||||
|
|
||||||
//create a single Jar with all dependencies
|
|
||||||
task fatJar(type: Jar) {
|
task fatJar(type: Jar) {
|
||||||
manifest {
|
manifest {
|
||||||
attributes 'Implementation-Title': 'Gradle Jar File Example',
|
attributes 'Implementation-Title': 'Gradle Jar File Example',
|
||||||
@ -28,60 +34,51 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile group: 'javax.help', name: 'javahelp', version: '2.0.05'
|
implementation group: 'javax.help', name: 'javahelp', version: '2.0.05'
|
||||||
compile group: 'org.yaml', name: 'snakeyaml', version: '1.16'
|
implementation group: 'org.yaml', name: 'snakeyaml', version: '1.16'
|
||||||
compile group: 'gov.nist.math', name: 'jama', version: '1.0.3'
|
implementation group: 'gov.nist.math', name: 'jama', version: '1.0.3'
|
||||||
testCompile group: 'junit', name: 'junit', version: '4.12'
|
testImplementation group: 'junit', name: 'junit', version: '4.12'
|
||||||
testCompile group: 'org.mockito', name: 'mockito-core', version: '1.+'
|
testImplementation group: 'org.mockito', name: 'mockito-core', version: '1.+'
|
||||||
}
|
}
|
||||||
|
|
||||||
buildscript {
|
//publishing {
|
||||||
repositories {
|
//publications {
|
||||||
jcenter()
|
//mavenJava(MavenPublication) {
|
||||||
}
|
//pom {
|
||||||
dependencies {
|
//name 'EvA2'
|
||||||
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
|
//description 'Gradle plugin that provides tasks for configuring and uploading artifacts to Sonatype Nexus.'
|
||||||
}
|
//url 'http://www.ra.cs.uni-tuebingen.de/software/eva2/'
|
||||||
}
|
//inceptionYear '2008'
|
||||||
|
|
||||||
modifyPom {
|
//scm {
|
||||||
project {
|
//url 'https://gitlab.cs.uni-tuebingen.de/eva2/eva2/'
|
||||||
name 'EvA2'
|
//connection 'scm:https://gitlab.cs.uni-tuebingen.de/eva2/eva2/.git'
|
||||||
description 'Gradle plugin that provides tasks for configuring and uploading artifacts to Sonatype Nexus.'
|
//developerConnection 'scm:https://gitlab.cs.uni-tuebingen.de/eva2/eva2/.git'
|
||||||
url 'http://www.ra.cs.uni-tuebingen.de/software/eva2/'
|
//}
|
||||||
inceptionYear '2008'
|
|
||||||
|
|
||||||
scm {
|
//licenses {
|
||||||
url 'https://gitlab.cs.uni-tuebingen.de/eva2/eva2/'
|
//license {
|
||||||
connection 'scm:https://gitlab.cs.uni-tuebingen.de/eva2/eva2/.git'
|
//name 'GNU Lesser General Public License, Version 3.0'
|
||||||
developerConnection 'scm:https://gitlab.cs.uni-tuebingen.de/eva2/eva2/.git'
|
//url 'http://www.gnu.org/licenses/lgpl-3.0.html'
|
||||||
}
|
//distribution 'repo'
|
||||||
|
//}
|
||||||
|
//}
|
||||||
|
|
||||||
licenses {
|
//developers {
|
||||||
license {
|
//developer {
|
||||||
name 'GNU Lesser General Public License, Version 3.0'
|
//id 'halfdan'
|
||||||
url 'http://www.gnu.org/licenses/lgpl-3.0.html'
|
//name 'Fabian Becker'
|
||||||
distribution 'repo'
|
//email 'halfdan@xnorfz.de'
|
||||||
}
|
//}
|
||||||
}
|
//}
|
||||||
|
//}
|
||||||
|
//}
|
||||||
|
//}
|
||||||
|
//}
|
||||||
|
|
||||||
developers {
|
//extraArchive {
|
||||||
developer {
|
//sources = true
|
||||||
id 'halfdan'
|
//tests = true
|
||||||
name 'Fabian Becker'
|
//javadoc = true
|
||||||
email 'halfdan@xnorfz.de'
|
//}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
extraArchive {
|
|
||||||
sources = true
|
|
||||||
tests = true
|
|
||||||
javadoc = true
|
|
||||||
}
|
|
||||||
|
|
||||||
nexus {
|
|
||||||
repositoryUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
|
|
||||||
snapshotRepositoryUrl = 'https://oss.sonatype.org/content/repositories/snapshots'
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user