Correct Jar/War split for addressbook, snark and i2ptunnel

This commit is contained in:
str4d
2014-06-26 00:00:38 +00:00
parent aa3ac75470
commit 8de0c0bd88
3 changed files with 50 additions and 3 deletions

View File

@@ -13,6 +13,10 @@ dependencies {
providedCompile project(':apps:jetty')
}
jar {
exclude { it.name == 'Servlet.class' }
}
war {
webXml = file('web.xml')
}

View File

@@ -4,16 +4,37 @@ sourceSets {
main {
java {
srcDir 'java/src'
include 'org/klomp/snark/web/**'
}
}
jar {
java {
srcDir 'java/src'
exclude 'org/klomp/snark/web'
}
}
}
dependencies {
compile project(':core')
jarCompile project(':core')
jarCompile project(':apps:ministreaming')
providedCompile sourceSets.jar.output
providedCompile project(':apps:ministreaming')
providedCompile project(':apps:jetty')
}
task i2psnarkJar(type: Jar) {
from sourceSets.jar.output
manifest {
attributes 'Main-Class': 'org.klomp.snark.Snark'
attributes 'Class-Path': 'i2p.jar mstreaming.jar streaming.jar'
}
}
artifacts {
archives i2psnarkJar
}
war {
into '.icons', {
from 'icons'

View File

@@ -4,6 +4,15 @@ sourceSets {
main {
java {
srcDir 'java/src'
include 'net/i2p/i2ptunnel/web/EditBean.java'
include 'net/i2p/i2ptunnel/web/IndexBean.java'
}
}
jar {
java {
srcDir 'java/src'
exclude 'net/i2p/i2ptunnel/web/EditBean.java'
exclude 'net/i2p/i2ptunnel/web/IndexBean.java'
}
}
test {
@@ -14,11 +23,24 @@ sourceSets {
}
dependencies {
compile project(':core')
providedCompile project(':apps:ministreaming')
jarCompile project(':core')
jarCompile project(':apps:ministreaming')
providedCompile sourceSets.jar.output
providedCompile project(':apps:jetty')
}
task i2ptunnelJar(type: Jar) {
from sourceSets.jar.output
manifest {
attributes 'Main-Class': 'net.i2p.i2ptunnel.I2PTunnel'
attributes 'Class-Path': 'i2p.jar mstreaming.jar'
}
}
artifacts {
archives i2ptunnelJar
}
war {
from 'jsp'
exclude 'jsp/web.xml'