|
| 1 | +plugins { |
| 2 | + id 'java' |
| 3 | +} |
| 4 | + |
| 5 | +group '1.0' |
| 6 | +version '1.0-SNAPSHOT' |
| 7 | + |
| 8 | +sourceCompatibility = 1.8 |
| 9 | +//create a single Jar with all dependencies |
| 10 | +//task fatJar(type: Jar) { |
| 11 | +// manifest { |
| 12 | +// attributes 'Implementation-Title': 'Gradle Jar File Example', |
| 13 | +// 'Implementation-Version': version, |
| 14 | +// 'Main-Class': 'usc.edu.OwlEye.run.runOwlEye' |
| 15 | +// } |
| 16 | +// baseName = project.name + '-all' |
| 17 | +// from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } |
| 18 | +// } |
| 19 | +// with jar |
| 20 | +//} |
| 21 | +jar{ |
| 22 | + manifest { |
| 23 | + attributes( |
| 24 | + "Main-Class": "usc.edu.OwlEye.run.runOwlEye", |
| 25 | + |
| 26 | + ) |
| 27 | + |
| 28 | + } |
| 29 | + from { |
| 30 | + configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) |
| 31 | + } |
| 32 | + } |
| 33 | + exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA' |
| 34 | + duplicatesStrategy = DuplicatesStrategy.EXCLUDE |
| 35 | + dependsOn ('dependencies') |
| 36 | +} |
| 37 | +repositories { |
| 38 | + mavenCentral() |
| 39 | + maven { |
| 40 | + url "http://sourceforge.net/projects/jsi/files/m2_repo" |
| 41 | + } |
| 42 | +} |
| 43 | + |
| 44 | + |
| 45 | +dependencies { |
| 46 | + testCompile group: 'junit', name: 'junit', version: '4.12' |
| 47 | + compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.13.2' |
| 48 | + compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.13.2' |
| 49 | + compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.8' |
| 50 | + implementation("com.google.guava:guava:29.0-jre") |
| 51 | + compile 'org.apache.commons:commons-text:1.8' |
| 52 | + implementation 'org.xmlunit:xmlunit-core:2.7.0' |
| 53 | + // https://mvnrepository.com/artifact/tech.tablesaw/tablesaw-core |
| 54 | + compile group: 'tech.tablesaw', name: 'tablesaw-core', version: '0.38.1' |
| 55 | + compile group: 'org.xmlunit', name: 'xmlunit-core', version: '2.6.2' |
| 56 | + compile group: 'com.google.guava', name: 'guava', version: 'r05' |
| 57 | + compile group: 'commons-io', name: 'commons-io', version: '2.7' |
| 58 | + // https://mvnrepository.com/artifact/org.apache.commons/commons-csv |
| 59 | + compile group: 'org.apache.commons', name: 'commons-csv', version: '1.4' |
| 60 | +// https://mvnrepository.com/artifact/net.sourceforge.jsi/jsi |
| 61 | + compile group: 'net.sourceforge.jsi', name: 'jsi', version: '1.0.0' |
| 62 | + compile "org.slf4j:slf4j-simple:1.7.9" |
| 63 | + |
| 64 | + implementation 'com.google.code.gson:gson:2.8.1' |
| 65 | + implementation 'org.tinylog:tinylog-api:2.5.0' |
| 66 | + implementation 'org.tinylog:tinylog-impl:2.5.0' |
| 67 | + //Jemtal |
| 68 | + |
| 69 | +// // https://mvnrepository.com/artifact/org.uma.jmetal/jmetal-core |
| 70 | +// implementation group: 'org.uma.jmetal', name: 'jmetal-core', version: '6.0' |
| 71 | +//// https://mvnrepository.com/artifact/org.uma.jmetal/jmetal-problem |
| 72 | +// implementation group: 'org.uma.jmetal', name: 'jmetal-problem', version: '6.0' |
| 73 | +//// https://mvnrepository.com/artifact/org.uma.jmetal/jmetal-algorithm |
| 74 | +// implementation group: 'org.uma.jmetal', name: 'jmetal-algorithm', version: '6.0' |
| 75 | +//// https://mvnrepository.com/artifact/org.uma.jmetal/jmetal-exec |
| 76 | +// implementation group: 'org.uma.jmetal', name: 'jmetal-exec', version: '6.0' |
| 77 | +//// https://mvnrepository.com/artifact/org.uma.jmetal/jmetal-gui |
| 78 | +// implementation group: 'org.uma.jmetal', name: 'jmetal-gui', version: '6.0' |
| 79 | +//// https://mvnrepository.com/artifact/org.uma.jmetal/jmetal-operator |
| 80 | +// implementation group: 'org.uma.jmetal', name: 'jmetal-operator', version: '6.0' |
| 81 | +//// https://mvnrepository.com/artifact/org.uma.jmetal/jmetal-solution |
| 82 | +// implementation group: 'org.uma.jmetal', name: 'jmetal-solution', version: '6.0' |
| 83 | +//// https://mvnrepository.com/artifact/org.uma.jmetal/jmetal-util |
| 84 | +// implementation group: 'org.uma.jmetal', name: 'jmetal-util', version: '6.0' |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | +} |
| 90 | + |
| 91 | +//jar { |
| 92 | +// manifest { |
| 93 | +// attributes 'Main-Class': 'class name' |
| 94 | +// } |
| 95 | +// from { |
| 96 | +// configurations.compile.collect { |
| 97 | +// it.isDirectory()? it: zipTree(it) |
| 98 | +// } |
| 99 | +// } |
| 100 | +//} |
0 commit comments