source: core/build.gradle @ 9be53ec

Last change on this file since 9be53ec was 9be53ec, checked in by str4d <str4d@…>, 3 years ago

Swap out getopt, gettext, and geoip code in Gradle libs for dependencies

  • Property mode set to 100644
File size: 927 bytes
Line 
1apply plugin: 'java-library'
2
3archivesBaseName = 'i2p'
4
5sourceSets {
6    main {
7        java {
8            srcDir 'java/src'
9            exclude 'gnu/getopt'
10            exclude 'gnu/gettext'
11        }
12        resources {
13            srcDir 'java/src'
14            include 'gnu/getopt/*.properties'
15        }
16    }
17    test {
18        java {
19            srcDir 'java/test/junit'
20        }
21        resources {
22            srcDir 'java/test/junit'
23            include 'net/i2p/crypto/eddsa/test.data'
24            include 'net/i2p/crypto/eddsa/math/baseDblPrecmp'
25            include 'net/i2p/crypto/eddsa/math/basePrecmp'
26        }
27    }
28}
29
30dependencies {
31    implementation 'gnu.getopt:java-getopt:1.0.13'
32    implementation 'org.gnu.gettext:libintl:0.18.3'
33}
34
35configurations {
36    tests
37}
38task testJar(type: Jar) {
39    baseName = 'i2p-test'
40    dependsOn classes
41    from sourceSets.test.output
42}
43artifacts {
44    tests testJar
45}
Note: See TracBrowser for help on using the repository browser.