-
Notifications
You must be signed in to change notification settings - Fork 198
Expand file tree
/
Copy pathbuild.gradle
More file actions
54 lines (45 loc) · 1 KB
/
build.gradle
File metadata and controls
54 lines (45 loc) · 1 KB
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
/*
* Java-OCA-OCPP gradle build configuration
*/
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "gradle.plugin.com.github.sherter.google-java-format:google-java-format-gradle-plugin:0.8"
}
}
allprojects {
group = 'eu.chargetime.ocpp'
version = '2.0'
}
subprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: "com.github.sherter.google-java-format"
compileJava {
options.compilerArgs << '-Xlint:all'
}
compileTestJava {
options.compilerArgs << '-Xlint:all'
}
repositories {
mavenLocal()
maven {
url = 'https://repo.maven.apache.org/maven2'
}
}
sourceCompatibility = '1.8'
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
}
}