I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit d3cdf3c7 authored by zab2's avatar zab2
Browse files

switch to single source multiple jar approach

parent ab69fab3
No related branches found
No related tags found
No related merge requests found
......@@ -4,15 +4,6 @@ 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 {
......@@ -23,23 +14,41 @@ sourceSets {
}
dependencies {
jarCompile project(':core')
jarCompile project(':apps:ministreaming')
testCompile project(':apps:ministreaming')
providedCompile sourceSets.jar.output
compile project(':core')
compile project(':apps:ministreaming')
providedCompile project(':apps:jetty')
}
task i2ptunnelJar(type: Jar) {
from sourceSets.jar.output
from sourceSets.main.output
exclude '**/ui/*.class'
exclude '**/EditBean.class'
exclude '**/IndexBean.class'
manifest {
attributes 'Main-Class': 'net.i2p.i2ptunnel.I2PTunnel'
attributes 'Class-Path': 'i2p.jar mstreaming.jar'
}
}
task tempBeansJar(type: Jar) {
from sourceSets.main.output
include '**/EditBean.class'
include '**/ui/*.class'
include '**/IndexBean.class'
baseName = 'temp-beans'
}
task uiJar(type: Jar) {
baseName = 'i2ptunnel-ui.jar'
from sourceSets.main.output
include '**/ui/*.class'
manifest {
attributes 'Class-Path' : 'i2p.jar mstreaming.jar i2ptunnel.jar'
}
}
artifacts {
archives i2ptunnelJar
archives i2ptunnelJar, tempBeansJar, uiJar
}
war {
......@@ -47,3 +56,4 @@ war {
exclude 'jsp/web.xml'
webXml = file('jsp/web.xml')
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment