-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
49 lines (42 loc) · 1.15 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
plugins {
id 'base'
id 'distribution'
id 'maven-publish'
// id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
}
version = '0.2.2-SNAPSHOT'
subprojects.each { subproject -> evaluationDependsOn(subproject.path) }
project(':modules').subprojects {
project(':modules').subprojects.publish
}
distributions {
main {
contents {
duplicatesStrategy = 'exclude'
from project.rootDir
from 'src/dist'
include 'readme.txt'
project(':modules').subprojects.each { p ->
p.plugins.withType(JavaPlugin) {
into('') {
from p.jar
include '*'
from p.sourceJar
include '*'
from p.javadocJar
include '*'
}
}
}
into('doc') {
from 'doc'
include '**'
}
into('resources') {
from 'resources'
include '**'
exclude 'private'
}
}
}
}