Skip to content

Commit

Permalink
Gradle build script updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sksamuel committed Dec 3, 2024
1 parent d092a2a commit a86cbda
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 28 deletions.
27 changes: 5 additions & 22 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,37 +1,17 @@
import org.gradle.api.tasks.testing.logging.TestExceptionFormat

buildscript {
repositories {
mavenCentral()
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
}
maven {
url = uri("https://plugins.gradle.org/m2/")
}
}
}

plugins {
signing
`maven-publish`
kotlin("jvm").version("1.9.25")
kotlin("jvm")
}

allprojects {
subprojects {
apply(plugin = "org.jetbrains.kotlin.jvm")

group = "com.sksamuel.aedile"
version = Ci.version

repositories {
mavenLocal()
mavenCentral()
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
}
}

dependencies {
api(rootProject.libs.coroutines.core)
api(rootProject.libs.coroutines.jdk8)
Expand All @@ -51,9 +31,12 @@ allprojects {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
withSourcesJar()
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "11"
kotlinOptions.apiVersion = "1.9"
kotlinOptions.languageVersion = "1.9"
}
}
2 changes: 1 addition & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import org.gradle.kotlin.dsl.`kotlin-dsl`

repositories {
jcenter()
mavenCentral()
}

plugins {
Expand Down
6 changes: 1 addition & 5 deletions publish.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ apply(plugin = "java-library")
apply(plugin = "maven-publish")
apply(plugin = "signing")

repositories {
mavenCentral()
}

val signingKey: String? by project
val signingPassword: String? by project

Expand Down Expand Up @@ -57,7 +53,7 @@ publishing {
from(components["java"])
pom {
name.set("aedile")
description.set("Kotlin Cache")
description.set("Kotlin Wrapper for Caffeine")
url.set("http://www.github.com/sksamuel/aedile")

scm {
Expand Down
17 changes: 17 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
}
plugins {
kotlin("jvm").version("1.9.25")
}
}

rootProject.name = "aedile"

include(
Expand All @@ -9,6 +19,13 @@ enableFeaturePreview("STABLE_CONFIGURATION_CACHE")
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")

dependencyResolutionManagement {
repositoriesMode = RepositoriesMode.FAIL_ON_PROJECT_REPOS
repositories {
mavenCentral()
mavenLocal()
maven("https://oss.sonatype.org/content/repositories/snapshots/")
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}
versionCatalogs {
create("libs") {

Expand Down

0 comments on commit a86cbda

Please sign in to comment.