Skip to content
Snippets Groups Projects
Commit 2faf1546 authored by Sebastian Krings's avatar Sebastian Krings
Browse files

migrate build to gradle 2

parent 76d989aa
No related branches found
No related tags found
No related merge requests found
...@@ -4,18 +4,24 @@ project.group = 'de.stups' ...@@ -4,18 +4,24 @@ project.group = 'de.stups'
buildscript { buildscript {
repositories { repositories {
mavenCentral() mavenCentral()
jcenter()
} }
dependencies { dependencies {
classpath 'eu.appsatori:gradle-fatjar-plugin:0.2-rc1' // classpath 'eu.appsatori:gradle-fatjar-plugin:0.2-rc1'
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.2'
} }
} }
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'eclipse' apply plugin: 'eclipse'
apply plugin: 'maven' apply plugin: 'maven'
apply plugin: 'fatjar' //apply plugin: 'fatjar'
apply plugin: 'application'
apply plugin: 'com.github.johnrengelman.shadow'
repositories { repositories {
...@@ -68,7 +74,14 @@ test { ...@@ -68,7 +74,14 @@ test {
} }
mainClassName = 'de.stups.probkodkod.KodkodInteraction'
jar { jar {
manifest {
attributes 'Main-Class': mainClassName,
'Implementation-Title': 'ProB Kodkod',
'Implementation-Version': project.version
}
include '**/*.class' include '**/*.class'
include '**/*.java' include '**/*.java'
exclude '**.*.scc' exclude '**.*.scc'
...@@ -77,8 +90,3 @@ jar { ...@@ -77,8 +90,3 @@ jar {
include '**/*.properties' include '**/*.properties'
from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment