-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle
141 lines (121 loc) · 3.05 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
plugins {
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
id 'java-library'
id 'signing'
id 'maven-publish'
id 'checkstyle'
}
allprojects {
group = 'net.fortytwo.hydra'
version = '0.8.2'
apply plugin: 'signing'
apply plugin: 'maven-publish'
ext {
junitVersion = '5.9.2'
rdf4jVersion = '5.0.2'
}
repositories {
mavenCentral()
mavenLocal()
maven {
url "https://linkedin.jfrog.io/artifactory/open-source/" // For Pegasus dependencies
}
}
}
subprojects {
apply plugin: 'java-library'
apply plugin: 'checkstyle'
sourceSets {
main {
java {
srcDirs 'src/main/java'
srcDirs 'src/gen-main/java'
}
}
test {
java {
srcDirs 'src/test/java'
srcDirs 'src/gen-test/java'
}
}
}
java {
withJavadocJar()
withSourcesJar()
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
test {
useJUnitPlatform()
}
checkstyle {
toolVersion = '8.29'
configFile = file("$projectDir/../hydra-java/config/checkstyle/checkstyle.xml")
}
checkstyleMain {
source = 'src/main'
include '**/*.java'
}
checkstyleTest {
source = 'src/test'
include '**/*.java'
}
tasks.withType(Checkstyle) {
reports {
xml.required = false
html.required = true
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.withType(Javadoc) {
options.encoding = 'UTF-8'
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from(components.java)
pom {
name = 'hydra'
description = 'The Hydra language for type-safe transformations'
url = 'https://github.com/CategoricalData/hydra'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'joshsh'
name = 'Joshua Shinavier'
email = 'josh@fortytwo.net'
}
}
scm {
url = 'https://github.com/CategoricalData/hydra'
connection = 'scm:git://github.com/ConnectedData/hydra.git'
developerConnection = 'scm:git://github.com/CategoricalData/hydra.git'
}
}
}
}
// Uncomment the below to enable local publishing
// repositories {
// mavenLocal()
// }
}
nexusPublishing {
repositories {
sonatype()
}
}
task buildAll {
dependsOn subprojects*.build
}
task publishAll {
dependsOn subprojects*.publish
}