source: core/build.gradle @ 3acb7a5

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

Apply java-library plugin to published libraries

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