source: apps/i2psnark/build.gradle @ bf4cb41

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

Update i2psnark Gradle build script

  • Property mode set to 100644
File size: 1020 bytes
Line 
1apply plugin: 'war'
2
3sourceSets {
4    main {
5        java {
6            srcDir 'java/src'
7            include 'org/klomp/snark/web/**'
8        }
9    }
10    jar {
11        java {
12            srcDir 'java/src'
13            exclude 'org/klomp/snark/standalone'
14            exclude 'org/klomp/snark/web'
15        }
16    }
17}
18
19dependencies {
20    jarCompile project(':core')
21    jarCompile project(':apps:ministreaming')
22    jarCompile project(':apps:systray')
23    providedCompile sourceSets.jar.output
24    providedCompile project(':apps:ministreaming')
25    providedCompile project(':apps:jetty')
26}
27
28task i2psnarkJar(type: Jar) {
29    from sourceSets.jar.output
30    manifest {
31        attributes 'Main-Class': 'org.klomp.snark.Snark'
32        attributes 'Class-Path': 'i2p.jar mstreaming.jar streaming.jar'
33    }
34}
35
36artifacts {
37    archives i2psnarkJar
38}
39
40war {
41    into '.icons', {
42        from 'icons'
43    }
44    webInf {
45        into 'classes/org/klomp/snark/web'
46        from 'mime.properties'
47    }
48    webXml = file('web.xml')
49}
Note: See TracBrowser for help on using the repository browser.