forked from NOVA-Team/NOVA-Monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
119 lines (96 loc) · 2.19 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
import org.gradle.plugins.ide.eclipse.model.SourceFolder
plugins {
id "maven-publish"
id "com.jfrog.artifactory" version "3.1.1"
id "com.github.johnrengelman.shadow" version "1.2.3"
}
apply from: "https://raw.githubusercontent.com/NOVA-Team/NOVA-Gradle/master/shared-scripts/java.gradle"
dependencies {
compile 'com.google.guava:guava:18.0'
compile 'com.typesafe:config:1.2.1'
compile 'se.jbee:silk-di:0.6'
compile 'org.slf4j:slf4j-api:1.7.10'
compile 'org.apache.commons:commons-math3:3.5'
testRuntime 'org.slf4j:slf4j-simple:1.7.10'
//checkstyle 'com.puppycrawl.tools:checkstyle:6.2'
}
javadoc {
include 'nova/**'
options.tags 'implNotice:a:Implementation Details:'
}
shadowJar {
manifest {
attributes("Implementation-Title": "NovaCore", "Implementation-Version": version)
}
}
task wrapperTestJar(type: Jar) {
from(sourceSets.test.output) {
include "nova/wrappertests/**"
include "nova/testutils/**"
}
classifier = "wrappertests"
}
task apiJar(type: Jar) {
from(sourceSets.main.output) {
include "nova/core/**"
}
classifier = "api"
}
configurations {
wrapperTests
api
}
artifacts {
archives shadowJar
archives wrapperTestJar
archives apiJar
wrapperTests wrapperTestJar
api apiJar
}
publishing {
publications {
main(MavenPublication) {
from components.java
artifactId "NOVA-Core"
artifact javadocJar
artifact shadowJar
artifact sourcesJar
artifact wrapperTestJar
artifact apiJar
pom.withXml(writePom(project.properties))
}
}
repositories {
if (System.getenv("MAVEN_DIR") != null) {
maven {
url System.getenv("MAVEN_DIR")
}
}
}
}
test.exclude "nova/wrappertests/**"
eclipse.classpath.file {
whenMerged { cp ->
cp.entries.removeAll { it instanceof SourceFolder && it.path.startsWith("src/test/") }
}
}
rootProject.idea.project.ipr {
withXml { provider ->
def settingsnode = provider.node.component
.find { it.@name == 'ProjectCodeStyleSettingsManager' }
if (settingsnode) {
def codestyle = settingsnode.option.find { it.@name == 'PREFERRED_PROJECT_CODE_STYLE' }
if (codestyle) {
codestyle.@value = 'NOVAFormat'
}
}
}
}
artifactory {
publish {
defaults {
publications("main")
publishPom = true
}
}
}