Skip to content

Commit

Permalink
feat: centralized version
Browse files Browse the repository at this point in the history
  • Loading branch information
GuihVicentini committed Dec 17, 2023
1 parent 578b7d5 commit f799a1e
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 17 deletions.
13 changes: 6 additions & 7 deletions dupliwise/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
plugins {
java
id("org.springframework.boot") version "3.1.6"
id("io.spring.dependency-management") version "1.1.4"
id("org.graalvm.buildtools.native") version "0.9.28"
id("net.researchgate.release") version "3.0.2"
id("org.springframework.boot")
id("io.spring.dependency-management")
id("org.graalvm.buildtools.native")
}

group = "com.gvb"
version = "0.0.1"
version = rootProject.file("version.txt").readLines().toString().replace(Regex("[\\[\\]]"), "")

java {
sourceCompatibility = JavaVersion.VERSION_17
Expand All @@ -24,10 +23,10 @@ repositories {
}

dependencies {
implementation("info.picocli:picocli-spring-boot-starter:4.7.5")
implementation(libs.picocli.spring)
compileOnly("org.projectlombok:lombok")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
annotationProcessor("info.picocli:picocli-codegen:4.7.5")
annotationProcessor(libs.picocli.codegen)
annotationProcessor("org.projectlombok:lombok")
testImplementation("org.springframework.boot:spring-boot-starter-test")
}
Expand Down
1 change: 0 additions & 1 deletion dupliwise/gradle.properties

This file was deleted.

13 changes: 6 additions & 7 deletions quickgen/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
plugins {
java
id("org.springframework.boot") version "3.1.6"
id("io.spring.dependency-management") version "1.1.4"
id("org.graalvm.buildtools.native") version "0.9.28"
id("net.researchgate.release") version "3.0.2"
id("org.springframework.boot")
id("io.spring.dependency-management")
id("org.graalvm.buildtools.native")
}

group = "com.gvb"
version = "0.0.1"
version = rootProject.file("version.txt").readLines().toString().replace(Regex("[\\[\\]]"), "")

java {
sourceCompatibility = JavaVersion.VERSION_17
Expand All @@ -24,10 +23,10 @@ repositories {
}

dependencies {
implementation("info.picocli:picocli-spring-boot-starter:4.7.5")
implementation(libs.picocli.spring)
compileOnly("org.projectlombok:lombok")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
annotationProcessor("info.picocli:picocli-codegen:4.7.5")
annotationProcessor(libs.picocli.codegen)
annotationProcessor("org.projectlombok:lombok")
testImplementation("org.springframework.boot:spring-boot-starter-test")
}
Expand Down
1 change: 0 additions & 1 deletion quickgen/gradle.properties

This file was deleted.

21 changes: 20 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,2 +1,21 @@
rootProject.name = "cli-utils"
include("dupliwise", "quickgen")
include("dupliwise", "quickgen")


pluginManagement {
plugins {
id("org.springframework.boot") version "3.1.6"
id("io.spring.dependency-management") version "1.1.4"
id("org.graalvm.buildtools.native") version "0.9.28"
}
}

dependencyResolutionManagement {
versionCatalogs {
create("libs") {
version("picocli", "4.7.5")
library("picocli-spring", "info.picocli", "picocli-spring-boot-starter").versionRef("picocli")
library("picocli-codegen", "info.picocli", "picocli-codegen").versionRef("picocli")
}
}
}
1 change: 1 addition & 0 deletions version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.6.0

0 comments on commit f799a1e

Please sign in to comment.