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 22plugins {
33 id ' antlr'
44 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)
77}
88
99dependencies {
1010 implementation project(" :contract" )
11- implementation project(" :frontend" )
11+ if (prod) {
12+ implementation project(" :frontend" )
13+ }
1214 implementation project(" :serde-api" )
13-
1415 implementation libs. spring. starter. webflux
1516 implementation libs. spring. starter. security
1617 implementation libs. spring. starter. actuator
@@ -104,7 +105,7 @@ tasks.withType(Checkstyle) {
104105
105106checkstyle {
106107 toolVersion ' 10.3.1'
107- configFile = rootProject. file(' etc/checkstyle/checkstyle-e2e .xml' )
108+ configFile = rootProject. file(' etc/checkstyle/checkstyle.xml' )
108109 ignoreFailures = false
109110 maxWarnings = 0
110111 maxErrors = 0
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import org.openapitools.generator.gradle.plugin.tasks.GenerateTask
22
33plugins {
44 id " java-library"
5- id ' org. openapi.generator' version ' 7.9.0 '
5+ alias(libs . plugins . openapi. generator)
66}
77
88
Original file line number Diff line number Diff line change 11plugins {
22 id ' java'
33 id ' checkstyle'
4- id ' io.qameta .allure' version ' 2.10.0 '
4+ alias(libs . plugins . allure)
55}
66
77ext {
@@ -31,7 +31,7 @@ dependencies {
3131
3232checkstyle {
3333 toolVersion ' 10.3.1'
34- configFile = rootProject. file(' etc/checkstyle/checkstyle.xml' )
34+ configFile = rootProject. file(' etc/checkstyle/checkstyle-e2e .xml' )
3535 ignoreFailures = false
3636 maxWarnings = 10
3737 maxErrors = 0
Original file line number Diff line number Diff line change 1- description =' Kafka UI'
1+ description =' Kafbat UI'
22version =0.1.0-SNAPSHOT
33group =io.kafbat.ui
44local_node = false
Original file line number Diff line number Diff line change @@ -38,6 +38,13 @@ micrometer = '1.13.8'
3838antlr = ' 4.12.0'
3939json-schema-validator = ' 2.2.14'
4040
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+
4148
4249[libraries ]
4350spring-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 {
22 id ' java-library'
33 id ' signing'
44 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)
106}
117
128tasks. register(' sourceJar' , Jar ) {
@@ -89,14 +85,16 @@ publishing {
8985 }
9086}
9187
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