Compare commits

..

No commits in common. "master" and "a166d122d09509912bbea1eccf8795220aeaaf24" have entirely different histories.

2 changed files with 55 additions and 61 deletions

View File

@ -1,9 +0,0 @@
kind: pipeline
type: docker
name: default
steps:
- name: test
image: gradle:jdk8
commands:
- gradle test --info

View File

@ -1,15 +1,7 @@
buildscript { apply plugin: 'java'
repositories { apply plugin: 'maven'
jcenter() apply plugin: 'com.bmuschko.nexus'
}
}
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'
@ -18,6 +10,8 @@ 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',
@ -34,51 +28,60 @@ repositories {
} }
dependencies { dependencies {
implementation group: 'javax.help', name: 'javahelp', version: '2.0.05' compile group: 'javax.help', name: 'javahelp', version: '2.0.05'
implementation group: 'org.yaml', name: 'snakeyaml', version: '1.16' compile group: 'org.yaml', name: 'snakeyaml', version: '1.16'
implementation group: 'gov.nist.math', name: 'jama', version: '1.0.3' compile group: 'gov.nist.math', name: 'jama', version: '1.0.3'
testImplementation group: 'junit', name: 'junit', version: '4.12' testCompile group: 'junit', name: 'junit', version: '4.12'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '1.+' testCompile group: 'org.mockito', name: 'mockito-core', version: '1.+'
} }
//publishing { buildscript {
//publications { repositories {
//mavenJava(MavenPublication) { jcenter()
//pom { }
//name 'EvA2' dependencies {
//description 'Gradle plugin that provides tasks for configuring and uploading artifacts to Sonatype Nexus.' classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
//url 'http://www.ra.cs.uni-tuebingen.de/software/eva2/' }
//inceptionYear '2008' }
//scm { modifyPom {
//url 'https://gitlab.cs.uni-tuebingen.de/eva2/eva2/' project {
//connection 'scm:https://gitlab.cs.uni-tuebingen.de/eva2/eva2/.git' name 'EvA2'
//developerConnection 'scm:https://gitlab.cs.uni-tuebingen.de/eva2/eva2/.git' 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'
//licenses { scm {
//license { url 'https://gitlab.cs.uni-tuebingen.de/eva2/eva2/'
//name 'GNU Lesser General Public License, Version 3.0' connection 'scm:https://gitlab.cs.uni-tuebingen.de/eva2/eva2/.git'
//url 'http://www.gnu.org/licenses/lgpl-3.0.html' developerConnection 'scm:https://gitlab.cs.uni-tuebingen.de/eva2/eva2/.git'
//distribution 'repo' }
//}
//}
//developers { licenses {
//developer { license {
//id 'halfdan' name 'GNU Lesser General Public License, Version 3.0'
//name 'Fabian Becker' url 'http://www.gnu.org/licenses/lgpl-3.0.html'
//email 'halfdan@xnorfz.de' distribution 'repo'
//} }
//} }
//}
//}
//}
//}
//extraArchive { developers {
//sources = true developer {
//tests = true id 'halfdan'
//javadoc = true name 'Fabian Becker'
//} 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'
}