2020-05-05 16:01:23 +01:00
|
|
|
|
|
|
|
plugins {
|
|
|
|
id 'java-library'
|
|
|
|
id 'maven-publish'
|
|
|
|
}
|
|
|
|
|
2018-07-25 14:21:13 +01:00
|
|
|
dependencies {
|
2020-05-05 15:39:54 +01:00
|
|
|
api "net.i2p:i2p:${i2pVersion}"
|
|
|
|
api "net.i2p:router:${i2pVersion}"
|
2020-06-01 13:14:33 +01:00
|
|
|
api "net.i2p.client:mstreaming:${i2pVersion}"
|
2020-05-05 15:39:54 +01:00
|
|
|
implementation "net.i2p.client:streaming:${i2pVersion}"
|
2019-05-23 14:04:47 +01:00
|
|
|
|
2020-05-05 15:39:54 +01:00
|
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.4.2'
|
|
|
|
testImplementation 'junit:junit:4.12'
|
2020-06-01 13:40:28 +01:00
|
|
|
testImplementation 'org.codehaus.groovy:groovy-all:3.0.4'
|
2020-05-05 15:39:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// this is necessary because applying both groovy and java-library doesn't work well
|
|
|
|
configurations {
|
|
|
|
apiElements.outgoing.variants {
|
|
|
|
classes {
|
|
|
|
artifact file: compileGroovy.destinationDir, builtBy: compileGroovy
|
|
|
|
}
|
|
|
|
}
|
2018-07-25 14:21:13 +01:00
|
|
|
}
|
2020-05-05 16:01:23 +01:00
|
|
|
|
2020-09-14 14:38:12 +01:00
|
|
|
configurations.testImplementation {
|
|
|
|
exclude group:'org.codehaus.groovy', module:'groovy-testng'
|
|
|
|
}
|
|
|
|
|
2020-05-05 16:01:23 +01:00
|
|
|
// publish core to local maven repo for sister projects
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
muCore(MavenPublication) {
|
|
|
|
from components.java
|
|
|
|
}
|
|
|
|
}
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
}
|
|
|
|
}
|