forked from I2P_Developers/i2p.i2p
Correct Jar/War split for addressbook, snark and i2ptunnel
This commit is contained in:
@@ -13,6 +13,10 @@ dependencies {
|
|||||||
providedCompile project(':apps:jetty')
|
providedCompile project(':apps:jetty')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
jar {
|
||||||
|
exclude { it.name == 'Servlet.class' }
|
||||||
|
}
|
||||||
|
|
||||||
war {
|
war {
|
||||||
webXml = file('web.xml')
|
webXml = file('web.xml')
|
||||||
}
|
}
|
||||||
|
@@ -4,16 +4,37 @@ sourceSets {
|
|||||||
main {
|
main {
|
||||||
java {
|
java {
|
||||||
srcDir 'java/src'
|
srcDir 'java/src'
|
||||||
|
include 'org/klomp/snark/web/**'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
jar {
|
||||||
|
java {
|
||||||
|
srcDir 'java/src'
|
||||||
|
exclude 'org/klomp/snark/web'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':core')
|
jarCompile project(':core')
|
||||||
|
jarCompile project(':apps:ministreaming')
|
||||||
|
providedCompile sourceSets.jar.output
|
||||||
providedCompile project(':apps:ministreaming')
|
providedCompile project(':apps:ministreaming')
|
||||||
providedCompile project(':apps:jetty')
|
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 {
|
war {
|
||||||
into '.icons', {
|
into '.icons', {
|
||||||
from 'icons'
|
from 'icons'
|
||||||
|
@@ -4,6 +4,15 @@ sourceSets {
|
|||||||
main {
|
main {
|
||||||
java {
|
java {
|
||||||
srcDir 'java/src'
|
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 {
|
test {
|
||||||
@@ -14,11 +23,24 @@ sourceSets {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':core')
|
jarCompile project(':core')
|
||||||
providedCompile project(':apps:ministreaming')
|
jarCompile project(':apps:ministreaming')
|
||||||
|
providedCompile sourceSets.jar.output
|
||||||
providedCompile project(':apps:jetty')
|
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 {
|
war {
|
||||||
from 'jsp'
|
from 'jsp'
|
||||||
exclude 'jsp/web.xml'
|
exclude 'jsp/web.xml'
|
||||||
|
Reference in New Issue
Block a user