|
1 |
| -plugins { |
2 |
| - `java-library` |
3 |
| - id("me.philippheuer.configuration") version "0.10.8" |
4 |
| -} |
5 |
| - |
6 |
| -val version: String = properties["version"] as? String ?: "0.0.0" |
7 |
| - |
8 |
| -projectConfiguration { |
9 |
| - type.set(me.philippheuer.projectcfg.domain.ProjectType.LIBRARY) |
10 |
| - javaVersion.set(JavaVersion.VERSION_17) |
11 |
| - artifactGroupId.set("io.github.primelib") |
12 |
| - artifactId.set("prometheus4j") |
13 |
| - artifactDisplayName.set("prometheus4j") |
14 |
| - artifactDescription.set("Java Client for the Prometheus REST APIs.") |
15 |
| - |
16 |
| - pom = { pom -> |
17 |
| - pom.url.set("https://github.com/primelib/prometheus4j") |
18 |
| - pom.issueManagement { |
19 |
| - system.set("GitHub") |
20 |
| - url.set("https://github.com/primelib/prometheus4j/issues") |
21 |
| - } |
22 |
| - pom.inceptionYear.set("2023") |
23 |
| - pom.developers { |
24 |
| - developer { |
25 |
| - id.set("PhilippHeuer") |
26 |
| - name.set("Philipp Heuer") |
27 |
| - email.set("git@philippheuer.me") |
28 |
| - roles.addAll("maintainer") |
29 |
| - } |
30 |
| - } |
31 |
| - pom.licenses { |
32 |
| - license { |
33 |
| - name.set("MIT License") |
34 |
| - distribution.set("repo") |
35 |
| - url.set("https://raw.githubusercontent.com/primelib/prometheus4j/main/LICENSE") |
36 |
| - } |
37 |
| - } |
38 |
| - pom.scm { |
39 |
| - connection.set("scm:git:git://github.com/primelib/prometheus4j.git") |
40 |
| - developerConnection.set("scm:git:git://github.com/primelib/prometheus4j.git") |
41 |
| - url.set("https://github.com/primelib/prometheus4j") |
42 |
| - } |
43 |
| - } |
44 |
| -} |
45 |
| - |
46 |
| -dependencies { |
47 |
| - // bom |
48 |
| - api(platform("io.github.openfeign:feign-bom:13.1")) |
49 |
| - api(platform("io.github.resilience4j:resilience4j-bom:2.1.0")) |
50 |
| - api(platform("com.fasterxml.jackson:jackson-bom:2.15.3")) |
51 |
| - api(platform("io.github.primelib.primecodegenlib.java:bom:0.0.2")) |
52 |
| - |
53 |
| - // annotations |
54 |
| - implementation("org.jetbrains:annotations:24.1.0") |
55 |
| - |
56 |
| - // feign |
57 |
| - implementation("io.github.openfeign:feign-core") |
58 |
| - implementation("io.github.openfeign:feign-jackson") |
59 |
| - implementation("io.github.openfeign:feign-slf4j") |
60 |
| - implementation("io.github.openfeign:feign-okhttp") |
61 |
| - implementation("io.github.openfeign:feign-micrometer") |
62 |
| - |
63 |
| - // codegen libs |
64 |
| - api("io.github.primelib.primecodegenlib.java:feign-common") |
65 |
| - |
66 |
| - // jackson |
67 |
| - implementation("com.fasterxml.jackson.core:jackson-databind") |
68 |
| - implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310") |
69 |
| - |
70 |
| - // metrics |
71 |
| - api("io.micrometer:micrometer-core:1.12.0") |
72 |
| - |
73 |
| - // test |
74 |
| - testImplementation("org.slf4j:slf4j-simple:2.0.9") |
75 |
| -} |
| 1 | +plugins { |
| 2 | + `java-library` |
| 3 | + id("me.philippheuer.configuration") version "0.10.8" |
| 4 | +} |
| 5 | + |
| 6 | +val version: String = properties["version"] as? String ?: "0.0.0" |
| 7 | + |
| 8 | +projectConfiguration { |
| 9 | + type.set(me.philippheuer.projectcfg.domain.ProjectType.LIBRARY) |
| 10 | + javaVersion.set(JavaVersion.VERSION_17) |
| 11 | + artifactGroupId.set("io.github.primelib") |
| 12 | + artifactId.set("prometheus4j") |
| 13 | + artifactDisplayName.set("prometheus4j") |
| 14 | + artifactDescription.set("Java Client for the Prometheus REST APIs.") |
| 15 | + |
| 16 | + pom = { pom -> |
| 17 | + pom.url.set("https://github.com/primelib/prometheus4j") |
| 18 | + pom.issueManagement { |
| 19 | + system.set("GitHub") |
| 20 | + url.set("https://github.com/primelib/prometheus4j/issues") |
| 21 | + } |
| 22 | + pom.inceptionYear.set("2023") |
| 23 | + pom.developers { |
| 24 | + developer { |
| 25 | + id.set("PhilippHeuer") |
| 26 | + name.set("Philipp Heuer") |
| 27 | + email.set("git@philippheuer.me") |
| 28 | + roles.addAll("maintainer") |
| 29 | + } |
| 30 | + } |
| 31 | + pom.licenses { |
| 32 | + license { |
| 33 | + name.set("MIT License") |
| 34 | + distribution.set("repo") |
| 35 | + url.set("https://raw.githubusercontent.com/primelib/prometheus4j/main/LICENSE") |
| 36 | + } |
| 37 | + } |
| 38 | + pom.scm { |
| 39 | + connection.set("scm:git:git://github.com/primelib/prometheus4j.git") |
| 40 | + developerConnection.set("scm:git:git://github.com/primelib/prometheus4j.git") |
| 41 | + url.set("https://github.com/primelib/prometheus4j") |
| 42 | + } |
| 43 | + } |
| 44 | +} |
| 45 | + |
| 46 | +dependencies { |
| 47 | + // bom |
| 48 | + api(platform("io.github.openfeign:feign-bom:13.1")) |
| 49 | + api(platform("io.github.resilience4j:resilience4j-bom:2.2.0")) |
| 50 | + api(platform("com.fasterxml.jackson:jackson-bom:2.16.1")) |
| 51 | + api(platform("io.github.primelib.primecodegenlib.java:bom:0.0.2")) |
| 52 | + |
| 53 | + // annotations |
| 54 | + implementation("org.jetbrains:annotations:24.1.0") |
| 55 | + |
| 56 | + // feign |
| 57 | + implementation("io.github.openfeign:feign-core") |
| 58 | + implementation("io.github.openfeign:feign-jackson") |
| 59 | + implementation("io.github.openfeign:feign-slf4j") |
| 60 | + implementation("io.github.openfeign:feign-okhttp") |
| 61 | + implementation("io.github.openfeign:feign-micrometer") |
| 62 | + |
| 63 | + // codegen libs |
| 64 | + api("io.github.primelib.primecodegenlib.java:feign-common") |
| 65 | + |
| 66 | + // jackson |
| 67 | + implementation("com.fasterxml.jackson.core:jackson-databind") |
| 68 | + implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310") |
| 69 | + |
| 70 | + // metrics |
| 71 | + api("io.micrometer:micrometer-core:1.12.2") |
| 72 | + |
| 73 | + // test |
| 74 | + testImplementation("org.slf4j:slf4j-simple:2.0.11") |
| 75 | +} |
0 commit comments