-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
153 lines (120 loc) · 3.77 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
142
143
144
145
146
147
148
149
150
151
152
153
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'com.bmuschko.nexus'
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
}
}
// --- JAVADOC ---
javadoc {
options.encoding = 'UTF-8'
failOnError = false
}
// --- CONFIGURATIONS ---
configurations {
runtime
ecj
}
configurations.all {
// resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
// --- REPOSITORIES ---
repositories {
mavenCentral()
jcenter()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
// --- DEPENDENCIES ---
dependencies {
testCompile 'junit:junit:4.12'
ecj 'org.eclipse.jdt.core.compiler:ecj:4.4.2'
// --- LOGGING ---
// http://mvnrepository.com/artifact/org.slf4j/slf4j-api
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.30'
// http://mvnrepository.com/artifact/org.slf4j/slf4j-jdk14
implementation group: 'org.slf4j', name: 'slf4j-jdk14', version: '1.7.30'
// https://mvnrepository.com/artifact/org.slf4j/log4j-over-slf4j
implementation group: 'org.slf4j', name: 'log4j-over-slf4j', version: '1.7.30'
// https://mvnrepository.com/artifact/org.slf4j/jcl-over-slf4j
implementation group: 'org.slf4j', name: 'jcl-over-slf4j', version: '1.7.30'
// --- MOLECULER CORE ---
// https://mvnrepository.com/artifact/com.github.berkesa/moleculer-java
// compile project(':moleculer-java')
implementation group: 'com.github.berkesa', name: 'moleculer-java', version: '1.2.24'
// --- ANSI TERMINAL ---
// https://mvnrepository.com/artifact/com.diogonunes/JCDP
compile group: 'com.diogonunes', name: 'JCDP', version: '3.0.4'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
group = 'com.github.berkesa'
// version = '1.3.1-SNAPSHOT'
version = '1.3.1'
// + JAR version
modifyPom {
project {
artifactId 'moleculer-java-repl'
name 'Moleculer REPL Module'
description 'Java implementation of REPL module for Moleculer framework.'
url 'https://moleculer-java.github.io/moleculer-java-repl/'
inceptionYear '2018'
scm {
url 'https://moleculer-java.github.io/moleculer-java-repl/'
connection 'scm:https://github.com/moleculer-java/moleculer-java-repl.git'
developerConnection 'scm:git://github.com/moleculer-java/moleculer-java-repl.git'
}
licenses {
license {
name "The MIT License"
url "http://www.opensource.org/licenses/MIT"
distribution 'repo'
}
}
dependencies {
dependency {
groupId 'com.github.berkesa'
artifactId 'moleculer-java'
version '1.2.24'
scope 'runtime'
}
dependency {
groupId 'com.diogonunes'
artifactId 'JCDP'
version '3.0.4'
scope 'runtime'
}
}
developers {
developer {
id 'berkesa'
name 'Andras Berkes'
email '[email protected]'
}
}
}
}
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.encoding = 'UTF-8'
options.forkOptions.with {
executable = 'java'
jvmArgs = ['-classpath', project.configurations.ecj.asPath, 'org.eclipse.jdt.internal.compiler.batch.Main', '-nowarn']
}
}
// --- JAR ---
jar {
baseName = 'moleculer-repl'
version = '1.3.1'
}