Skip to content

Commit 4a6ee2b

Browse files
committed
Plugins varion catalog
1 parent cbc96ff commit 4a6ee2b

File tree

6 files changed

+31
-25
lines changed

6 files changed

+31
-25
lines changed

api/build.gradle

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
plugins {
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

99
dependencies {
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

105106
checkstyle {
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

contract/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import org.openapitools.generator.gradle.plugin.tasks.GenerateTask
22

33
plugins {
44
id "java-library"
5-
id 'org.openapi.generator' version '7.9.0'
5+
alias(libs.plugins.openapi.generator)
66
}
77

88

e2e-tests/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
22
id 'java'
33
id 'checkstyle'
4-
id 'io.qameta.allure' version '2.10.0'
4+
alias(libs.plugins.allure)
55
}
66

77
ext {
@@ -31,7 +31,7 @@ dependencies {
3131

3232
checkstyle {
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

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
description='Kafka UI'
1+
description='Kafbat UI'
22
version=0.1.0-SNAPSHOT
33
group=io.kafbat.ui
44
local_node = false

gradle/libs.versions.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ micrometer = '1.13.8'
3838
antlr = '4.12.0'
3939
json-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]
4350
spring-starter-actuator = { module = 'org.springframework.boot:spring-boot-starter-actuator', version.ref = 'spring-boot' }

serde-api/build.gradle

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff 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

128
tasks.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+
}

0 commit comments

Comments
 (0)