Skip to content

Commit

Permalink
Plugins varion catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
germanosin committed Jan 15, 2025
1 parent cbc96ff commit 4a6ee2b
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 25 deletions.
11 changes: 6 additions & 5 deletions api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
plugins {
id 'antlr'
id 'checkstyle'
id 'org.springframework.boot' version '3.4.1'
id 'com.gorylenko.gradle-git-properties' version "2.4.2"
alias(libs.plugins.spring.boot)
alias(libs.plugins.git.properties)
}

dependencies {
implementation project(":contract")
implementation project(":frontend")
if (prod) {
implementation project(":frontend")
}
implementation project(":serde-api")

implementation libs.spring.starter.webflux
implementation libs.spring.starter.security
implementation libs.spring.starter.actuator
Expand Down Expand Up @@ -104,7 +105,7 @@ tasks.withType(Checkstyle) {

checkstyle {
toolVersion '10.3.1'
configFile = rootProject.file('etc/checkstyle/checkstyle-e2e.xml')
configFile = rootProject.file('etc/checkstyle/checkstyle.xml')
ignoreFailures = false
maxWarnings = 0
maxErrors = 0
Expand Down
2 changes: 1 addition & 1 deletion contract/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import org.openapitools.generator.gradle.plugin.tasks.GenerateTask

plugins {
id "java-library"
id 'org.openapi.generator' version '7.9.0'
alias(libs.plugins.openapi.generator)
}


Expand Down
4 changes: 2 additions & 2 deletions e2e-tests/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'java'
id 'checkstyle'
id 'io.qameta.allure' version '2.10.0'
alias(libs.plugins.allure)
}

ext {
Expand Down Expand Up @@ -31,7 +31,7 @@ dependencies {

checkstyle {
toolVersion '10.3.1'
configFile = rootProject.file('etc/checkstyle/checkstyle.xml')
configFile = rootProject.file('etc/checkstyle/checkstyle-e2e.xml')
ignoreFailures = false
maxWarnings = 10
maxErrors = 0
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
description='Kafka UI'
description='Kafbat UI'
version=0.1.0-SNAPSHOT
group=io.kafbat.ui
local_node = false
Expand Down
7 changes: 7 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ micrometer = '1.13.8'
antlr = '4.12.0'
json-schema-validator = '2.2.14'

[plugins]
spring-boot = { id = 'org.springframework.boot', version = '3.4.1' }
git-properties = { id = 'com.gorylenko.gradle-git-properties', version = '2.4.2' }
openapi-generator = { id = 'org.openapi.generator', version = '7.9.0' }
allure = { id = 'io.qameta.allure', version='2.10.0' }
nexus-publish-plugin = { id = 'io.github.gradle-nexus.publish-plugin', version = '1.1.0'}


[libraries]
spring-starter-actuator = { module = 'org.springframework.boot:spring-boot-starter-actuator', version.ref = 'spring-boot' }
Expand Down
30 changes: 14 additions & 16 deletions serde-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ plugins {
id 'java-library'
id 'signing'
id 'maven-publish'
// id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
}

ext {
env = findProperty('env') ?: 'dev'
alias(libs.plugins.nexus.publish.plugin)
}

tasks.register('sourceJar', Jar) {
Expand Down Expand Up @@ -89,14 +85,16 @@ publishing {
}
}

//nexusPublishing {
// repositories {
// sonatype {
// nexusUrl = uri("https://s01.oss.sonatype.org/service/local/")
// snapshotRepositoryUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
//
// username = sonatypeUsername
// password = sonatypePassword
// }
// }
//}
if (prod) {
nexusPublishing {
repositories {
sonatype {
nexusUrl = uri("https://s01.oss.sonatype.org/service/local/")
snapshotRepositoryUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")

username = sonatypeUsername
password = sonatypePassword
}
}
}
}

0 comments on commit 4a6ee2b

Please sign in to comment.