-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
113 lines (88 loc) · 2.42 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
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'com.bmuschko.nexus'
apply plugin: 'jacoco'
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
}
}
// --- CONFIGURATIONS ---
configurations {
runtime
ecj
}
// --- REPOSITORIES ---
repositories {
mavenCentral()
jcenter()
}
// --- DEPENDENCIES ---
dependencies {
// ============= COMPILATION =============
testImplementation 'junit:junit:4.12'
ecj 'org.eclipse.jdt.core.compiler:ecj:4.4.2'
// ============= MONGO TYPES =============
// https://mvnrepository.com/artifact/org.mongodb/bson
compile group: 'org.mongodb', name: 'bson', version: '4.11.1'
}
// --- JACOCO ---
jacocoTestReport {
reports {
xml.enabled true
html.enabled true
}
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
group = 'com.github.berkesa'
// version = '1.1.3-SNAPSHOT'
version = '1.1.3'
modifyPom {
project {
artifactId 'datatree-core'
name 'DataTree Core API'
description 'Extensible Java Library for reading, manipulating and writing hierarchical data structures from/to various formats.'
url 'https://berkesa.github.io/datatree/'
inceptionYear '2017'
scm {
url 'https://berkesa.github.io/datatree/'
connection 'scm:https://github.com/berkesa/datatree.git'
developerConnection 'scm:git://github.com/berkesa/datatree.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
dependencies {
}
developers {
developer {
id 'berkesa'
name 'Andras Berkes'
email 'andras.berkes@programmer.net'
}
}
}
}
nexus {
sign = true
repositoryUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
snapshotRepositoryUrl = 'https://oss.sonatype.org/content/repositories/snapshots'
}
// --- COMPILATION ---
compileJava {
options.fork = true
options.forkOptions.with {
executable = 'java'
jvmArgs = ['-classpath', project.configurations.ecj.asPath, 'org.eclipse.jdt.internal.compiler.batch.Main', '-nowarn']
}
}