Changeset d3cdf3c


Ignore:
Timestamp:
Nov 3, 2017 12:11:51 AM (4 years ago)
Author:
zab2 <zab2@…>
Branches:
master
Children:
6cd560ff
Parents:
ab69fab
Message:

switch to single source multiple jar approach

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/build.gradle

    rab69fab rd3cdf3c  
    55        java {
    66            srcDir 'java/src'
    7             include 'net/i2p/i2ptunnel/web/EditBean.java'
    8             include 'net/i2p/i2ptunnel/web/IndexBean.java'
    9         }
    10     }
    11     jar {
    12         java {
    13             srcDir 'java/src'
    14             exclude 'net/i2p/i2ptunnel/web/EditBean.java'
    15             exclude 'net/i2p/i2ptunnel/web/IndexBean.java'
    167        }
    178    }
     
    2415
    2516dependencies {
    26     jarCompile project(':core')
    27     jarCompile project(':apps:ministreaming')
    28     testCompile project(':apps:ministreaming')
    29     providedCompile sourceSets.jar.output
     17    compile project(':core')
     18    compile project(':apps:ministreaming')
    3019    providedCompile project(':apps:jetty')
    3120}
    3221
    3322task i2ptunnelJar(type: Jar) {
    34     from sourceSets.jar.output
     23    from sourceSets.main.output
     24    exclude '**/ui/*.class'
     25    exclude '**/EditBean.class'
     26    exclude '**/IndexBean.class'
    3527    manifest {
    3628        attributes 'Main-Class': 'net.i2p.i2ptunnel.I2PTunnel'
     
    3931}
    4032
     33task tempBeansJar(type: Jar) {
     34    from sourceSets.main.output
     35    include '**/EditBean.class'
     36    include '**/ui/*.class'
     37    include '**/IndexBean.class'
     38    baseName = 'temp-beans'
     39}
     40
     41task uiJar(type: Jar) {
     42    baseName = 'i2ptunnel-ui.jar'
     43    from sourceSets.main.output
     44    include '**/ui/*.class'
     45    manifest {
     46        attributes 'Class-Path' : 'i2p.jar mstreaming.jar i2ptunnel.jar'
     47    }
     48}
     49
    4150artifacts {
    42     archives i2ptunnelJar
     51   archives i2ptunnelJar, tempBeansJar, uiJar
    4352}
    4453
     
    4857    webXml = file('jsp/web.xml')
    4958}
     59
Note: See TracChangeset for help on using the changeset viewer.