source: router/build.gradle @ b257564

Last change on this file since b257564 was 1cc330b, checked in by str4d <str4d@…>, 20 months ago

Gradle: Generate attributes for JAR manifests

  • Property mode set to 100644
File size: 998 bytes
Line 
1plugins {
2    id 'java-library'
3}
4
5sourceSets {
6    main {
7        java {
8            srcDir 'java/src'
9        }
10    }
11    test {
12        java {
13            srcDir 'java/test/junit'
14            exclude {
15                it.name.endsWith('IT.java')
16            }
17            // Needs rewriting
18            exclude 'net/i2p/router/tunnel/BuildMessageTestStandalone.java'
19        }
20    }
21}
22
23dependencies {
24    api project(':core')
25    implementation 'gnu.getopt:java-getopt:1.0.13'
26    testImplementation project(path: ':core', configuration: 'tests')
27}
28
29jar {
30    manifest {
31        attributes 'Specification-Title': 'I2P Router'
32        attributes 'Implementation-Title': 'I2P Java Router'
33        attributes 'Main-Class': 'net.i2p.router.CommandLine'
34        // so people with very old wrapper.config files will still work with Jetty 6
35        attributes 'Class-Path': 'jetty-i2p.jar jetty-java5-threadpool.jar jetty-rewrite-handler.jar jetty-sslengine.jar jetty-start.jar jetty-util.jar'
36    }
37}
Note: See TracBrowser for help on using the repository browser.