Compare commits

...

12 Commits

Author SHA1 Message Date
a08017f8fb New gradle syntax?
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2021-12-30 10:39:06 +01:00
51428641ef New gradle syntax?
Some checks failed
continuous-integration/drone/push Build is failing
2021-12-30 10:38:17 +01:00
9ab205db5c New gradle syntax?
Some checks failed
continuous-integration/drone/push Build is failing
2021-12-30 10:36:39 +01:00
70ee07d975 New gradle syntax?
Some checks failed
continuous-integration/drone/push Build is failing
2021-12-30 10:33:19 +01:00
1f9850323f New gradle syntax?
Some checks failed
continuous-integration/drone/push Build is failing
2021-12-30 10:32:04 +01:00
72205cc5ab New gradle syntax?
Some checks failed
continuous-integration/drone/push Build is failing
2021-12-30 10:31:20 +01:00
c63c3751b6 New gradle syntax?
Some checks failed
continuous-integration/drone/push Build is failing
2021-12-30 10:28:10 +01:00
7c86c2908a New gradle syntax?
Some checks failed
continuous-integration/drone/push Build is failing
2021-12-30 10:26:19 +01:00
88be5ee431 New gradle syntax?
Some checks failed
continuous-integration/drone/push Build is failing
2021-12-30 10:23:21 +01:00
57658b2cf8 New gradle syntax?
Some checks failed
continuous-integration/drone/push Build is failing
2021-12-30 10:22:05 +01:00
a3654076d1 New gradle syntax?
Some checks failed
continuous-integration/drone/push Build is failing
2021-12-30 10:21:05 +01:00
9a0b1d5cee New gradle syntax?
Some checks failed
continuous-integration/drone/push Build is failing
2021-12-30 10:19:22 +01:00

View File

@ -1,7 +1,15 @@
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'com.bmuschko.nexus'
buildscript {
repositories {
jcenter()
}
}
plugins {
id 'java'
id 'maven-publish'
}
//create a single Jar with all dependencies
group = 'de.openea'
version = '2.2.0'
@ -10,8 +18,6 @@ description = "EvA2"
sourceCompatibility = 1.8
targetCompatibility = 1.8
//create a single Jar with all dependencies
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Gradle Jar File Example',
@ -28,60 +34,51 @@ repositories {
}
dependencies {
compile group: 'javax.help', name: 'javahelp', version: '2.0.05'
compile group: 'org.yaml', name: 'snakeyaml', version: '1.16'
compile group: 'gov.nist.math', name: 'jama', version: '1.0.3'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.mockito', name: 'mockito-core', version: '1.+'
implementation group: 'javax.help', name: 'javahelp', version: '2.0.05'
implementation group: 'org.yaml', name: 'snakeyaml', version: '1.16'
implementation group: 'gov.nist.math', name: 'jama', version: '1.0.3'
testImplementation group: 'junit', name: 'junit', version: '4.12'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '1.+'
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
}
}
//publishing {
//publications {
//mavenJava(MavenPublication) {
//pom {
//name 'EvA2'
//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 {
project {
name 'EvA2'
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'
//scm {
//url 'https://gitlab.cs.uni-tuebingen.de/eva2/eva2/'
//connection 'scm:https://gitlab.cs.uni-tuebingen.de/eva2/eva2/.git'
//developerConnection 'scm:https://gitlab.cs.uni-tuebingen.de/eva2/eva2/.git'
//}
scm {
url 'https://gitlab.cs.uni-tuebingen.de/eva2/eva2/'
connection 'scm:https://gitlab.cs.uni-tuebingen.de/eva2/eva2/.git'
developerConnection 'scm:https://gitlab.cs.uni-tuebingen.de/eva2/eva2/.git'
}
//licenses {
//license {
//name 'GNU Lesser General Public License, Version 3.0'
//url 'http://www.gnu.org/licenses/lgpl-3.0.html'
//distribution 'repo'
//}
//}
licenses {
license {
name 'GNU Lesser General Public License, Version 3.0'
url 'http://www.gnu.org/licenses/lgpl-3.0.html'
distribution 'repo'
}
}
//developers {
//developer {
//id 'halfdan'
//name 'Fabian Becker'
//email 'halfdan@xnorfz.de'
//}
//}
//}
//}
//}
//}
developers {
developer {
id 'halfdan'
name 'Fabian Becker'
email 'halfdan@xnorfz.de'
}
}
}
}
//extraArchive {
//sources = true
//tests = true
//javadoc = true
//}
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'
}