Skip to content

Commit

Permalink
chore: update gradle & dependencies
Browse files Browse the repository at this point in the history
- Update Gradle to 8.9
- Update Dependencies
- Remove unused Dependency JUnit
  • Loading branch information
Patrick Mirwald committed Aug 8, 2024
1 parent cb45b12 commit a6a2a22
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 25 deletions.
25 changes: 11 additions & 14 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
import io.gitlab.arturbosch.detekt.Detekt

@Suppress("DSL_SCOPE_VIOLATION") // IntelliJ incorrectly marks libs as not callable
plugins {
`kotlin-dsl`
`maven-publish`
Expand All @@ -18,7 +19,6 @@ dependencies {
implementation(libs.aws.ecs)
implementation(libs.aws.codeartifact)
implementation(libs.aws.sts)
testImplementation(libs.junit)
}

ktlint {
Expand Down Expand Up @@ -63,28 +63,25 @@ tasks.withType<DependencyUpdatesTask> {
}

group = "com.liftric.code.artifact.repository"
version = with(versioning.info) {
if (branch == "HEAD" && dirty.not()) {
tag
} else {
full
version =
with(versioning.info) {
if (branch == "HEAD" && dirty.not()) {
tag
} else {
full
}
}
}

gradlePlugin {
website.set("https://github.com/Liftric/code-artifact-repository-plugin")
vcsUrl.set("https://github.com/Liftric/code-artifact-repository-plugin")
plugins {
create("CodeArtifactRepositoryPlugin") {
id = "com.liftric.code-artifact-repository-plugin"
displayName = "code-artifact-repository-plugin"
description = "Apply AWS CodeArtifact repositories"
implementationClass = "com.liftric.code.artifact.repository.CodeArtifactRepositoryPlugin"
tags.set(listOf("aws", "codeartifact", "maven", "repository"))
}
}
}

pluginBundle {
website = "https://github.com/Liftric/code-artifact-repository-plugin"
vcsUrl = "https://github.com/Liftric/code-artifact-repository-plugin"
description = "Gradle plugin to apply AWS CodeArtifact repositories"
tags = listOf("aws", "codeartifact", "maven", "repository")
}
18 changes: 8 additions & 10 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
[versions]
aws = "2.17.224"
detekt = "1.20.0"
junit = "4.13.2"
kotlin = "1.7.0"
ktlint-gradle = "10.3.0"
plugin-publish = "1.0.0"
version-catalog-update = "0.5.1"
version-check = "0.42.0"
versioning = "3.0.0"
aws = "2.26.31"
detekt = "1.23.6"
kotlin = "2.0.10"
ktlint-gradle = "12.1.1"
plugin-publish = "1.2.1"
version-catalog-update = "0.8.4"
version-check = "0.51.0"
versioning = "3.1.0"

[libraries]
aws-codeartifact = { module = "software.amazon.awssdk:codeartifact", version.ref = "aws" }
aws-ecs = { module = "software.amazon.awssdk:ecs", version.ref = "aws" }
aws-sts = { module = "software.amazon.awssdk:sts", version.ref = "aws" }
junit = { module = "junit:junit", version.ref = "junit" }

[plugins]
detekt = { id = "io.gitlab.arturbosch.detekt", version.ref = "detekt" }
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-rc-3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit a6a2a22

Please sign in to comment.