File tree Expand file tree Collapse file tree 6 files changed +31
-25
lines changed Expand file tree Collapse file tree 6 files changed +31
-25
lines changed Original file line number Diff line number Diff line change 2
2
plugins {
3
3
id ' antlr'
4
4
id ' checkstyle'
5
- id ' org.springframework.boot ' version ' 3.4.1 '
6
- id ' com.gorylenko.gradle- git-properties ' version " 2.4.2 "
5
+ alias(libs . plugins . spring . boot)
6
+ alias(libs . plugins . git. properties)
7
7
}
8
8
9
9
dependencies {
10
10
implementation project(" :contract" )
11
- implementation project(" :frontend" )
11
+ if (prod) {
12
+ implementation project(" :frontend" )
13
+ }
12
14
implementation project(" :serde-api" )
13
-
14
15
implementation libs. spring. starter. webflux
15
16
implementation libs. spring. starter. security
16
17
implementation libs. spring. starter. actuator
@@ -104,7 +105,7 @@ tasks.withType(Checkstyle) {
104
105
105
106
checkstyle {
106
107
toolVersion ' 10.3.1'
107
- configFile = rootProject. file(' etc/checkstyle/checkstyle-e2e .xml' )
108
+ configFile = rootProject. file(' etc/checkstyle/checkstyle.xml' )
108
109
ignoreFailures = false
109
110
maxWarnings = 0
110
111
maxErrors = 0
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import org.openapitools.generator.gradle.plugin.tasks.GenerateTask
2
2
3
3
plugins {
4
4
id " java-library"
5
- id ' org. openapi.generator' version ' 7.9.0 '
5
+ alias(libs . plugins . openapi. generator)
6
6
}
7
7
8
8
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
id ' java'
3
3
id ' checkstyle'
4
- id ' io.qameta .allure' version ' 2.10.0 '
4
+ alias(libs . plugins . allure)
5
5
}
6
6
7
7
ext {
@@ -31,7 +31,7 @@ dependencies {
31
31
32
32
checkstyle {
33
33
toolVersion ' 10.3.1'
34
- configFile = rootProject. file(' etc/checkstyle/checkstyle.xml' )
34
+ configFile = rootProject. file(' etc/checkstyle/checkstyle-e2e .xml' )
35
35
ignoreFailures = false
36
36
maxWarnings = 10
37
37
maxErrors = 0
Original file line number Diff line number Diff line change 1
- description =' Kafka UI'
1
+ description =' Kafbat UI'
2
2
version =0.1.0-SNAPSHOT
3
3
group =io.kafbat.ui
4
4
local_node = false
Original file line number Diff line number Diff line change @@ -38,6 +38,13 @@ micrometer = '1.13.8'
38
38
antlr = ' 4.12.0'
39
39
json-schema-validator = ' 2.2.14'
40
40
41
+ [plugins ]
42
+ spring-boot = { id = ' org.springframework.boot' , version = ' 3.4.1' }
43
+ git-properties = { id = ' com.gorylenko.gradle-git-properties' , version = ' 2.4.2' }
44
+ openapi-generator = { id = ' org.openapi.generator' , version = ' 7.9.0' }
45
+ allure = { id = ' io.qameta.allure' , version =' 2.10.0' }
46
+ nexus-publish-plugin = { id = ' io.github.gradle-nexus.publish-plugin' , version = ' 1.1.0' }
47
+
41
48
42
49
[libraries ]
43
50
spring-starter-actuator = { module = ' org.springframework.boot:spring-boot-starter-actuator' , version.ref = ' spring-boot' }
Original file line number Diff line number Diff line change @@ -2,11 +2,7 @@ plugins {
2
2
id ' java-library'
3
3
id ' signing'
4
4
id ' maven-publish'
5
- // id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
6
- }
7
-
8
- ext {
9
- env = findProperty(' env' ) ?: ' dev'
5
+ alias(libs. plugins. nexus. publish. plugin)
10
6
}
11
7
12
8
tasks. register(' sourceJar' , Jar ) {
@@ -89,14 +85,16 @@ publishing {
89
85
}
90
86
}
91
87
92
- // nexusPublishing {
93
- // repositories {
94
- // sonatype {
95
- // nexusUrl = uri("https://s01.oss.sonatype.org/service/local/")
96
- // snapshotRepositoryUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
97
- //
98
- // username = sonatypeUsername
99
- // password = sonatypePassword
100
- // }
101
- // }
102
- // }
88
+ if (prod) {
89
+ nexusPublishing {
90
+ repositories {
91
+ sonatype {
92
+ nexusUrl = uri(" https://s01.oss.sonatype.org/service/local/" )
93
+ snapshotRepositoryUrl = uri(" https://s01.oss.sonatype.org/content/repositories/snapshots/" )
94
+
95
+ username = sonatypeUsername
96
+ password = sonatypePassword
97
+ }
98
+ }
99
+ }
100
+ }
You can’t perform that action at this time.
0 commit comments