-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
executable file
·71 lines (59 loc) · 1.75 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
group = 'de.mfo.jsurf'
version = '0.4.1'
apply plugin: 'application'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
apply plugin: 'antlr'
targetCompatibility = 1.7
sourceCompatibility = 1.7
repositories {
mavenCentral()
}
// workaround for excluding certain ANTLR dependencies
configurations {
compile {
extendsFrom = extendsFrom.findAll { it != configurations.antlr }
}
}
dependencies {
antlr group: "org.antlr", name: "antlr", version: "3.4"
compile group: 'javax.vecmath', name: 'vecmath', version: '1.5.2'
compile 'org.antlr:antlr-runtime:3.4@jar'
compile 'commons-cli:commons-cli:1.2'
compile group: 'commons-io', name: 'commons-io', version: '2.4'
testCompile group: 'junit', name: 'junit', version: '4.11'
}
task wrapper(type: Wrapper) {
gradleVersion = '2.12'
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
jar {
manifest {
attributes( "Implementation-Title": project.group,
"Implementation-Version": project.version,
"Implementation-Vendor": "Mathematisches Forschungsinstitut Oberwolfach" )
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourceJar {
classifier "sources"
}
}
}
repositories {
maven {
// define in local gradle.properties file
url project.properties[ 'publishing.repositories.maven.url' ]
}
}
}
mainClassName = "de.mfo.jsurf.Main"
run {
args = [ "-s", "512", "--gui", "examples/record_kummerquartic.jsurf" ]
}