-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
68 lines (59 loc) · 1.65 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
plugins {
id 'com.diffplug.spotless' version '6.25.0'
id 'java-library'
id 'maven-publish'
id 'me.champeau.gradle.jmh' version '0.5.3'
}
//apply from: 'jacoco.gradle'
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
repositories {
mavenCentral()
}
def guavaDep = 'com.google.guava:guava:33.3.0-jre'
dependencies {
jmh guavaDep
testImplementation guavaDep
testImplementation 'org.junit.platform:junit-platform-runner:1.11.0'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.11.0'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.11.0'
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/ipregistry/ipregistry-ineter")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GH_PACKAGES_USER")
password = project.findProperty("gpr.key") ?: System.getenv("GH_PACKAGES_WRITE_TOKEN")
}
}
}
publications {
github(MavenPublication) {
groupId = 'co.ipregistry'
artifactId = 'ipregistry-ineter'
version = '3.0.1'
from(components.java)
}
}
}
//spotless {
// java {
// /*
// The ineter format is the default Ecplise 4.15.0 (2020-03) format with on/off tags (@formatter:on/off) enabled
// To use the formatter in intellij, import the xml into https://plugins.jetbrains.com/plugin/6546-eclipse-code-formatter
// */
// eclipse().configFile 'spotless/ineter-java-format.xml'
// licenseHeaderFile 'spotless/license-header'
// importOrder 'java', 'javax', 'org', 'com'
// removeUnusedImports()
// }
// groovyGradle {
// target '*.gradle'
// greclipse()
// }
//}
test {
useJUnitPlatform()
}