Skip to content

Commit

Permalink
Build: Use java toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
tamaracha committed Oct 10, 2024
1 parent 819020a commit 25ef011
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions plugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
plugins {
// Apply the Java Gradle plugin development plugin to add support for developing Gradle plugins
`java-gradle-plugin`

// Apply the Kotlin JVM plugin to add support for Kotlin.
kotlin("jvm") version "2.0.20"
signing
id("com.gradle.plugin-publish") version "1.2.2"
}

java {
toolchain.languageVersion = JavaLanguageVersion.of(22)
}

repositories {
Expand All @@ -19,13 +21,24 @@ dependencies {
}

gradlePlugin {
// Define the plugin
website = "https://github.com/infolektuell/gradle-astro"
vcsUrl = "https://github.com/infolektuell/gradle-astro.git"
val astro by plugins.creating {
id = "de.infolektuell.astro"
displayName = "Astro Plugin"
description = "Builds and checks Astro sites"
tags = listOf("Astro", "SSG", "web")
implementationClass = "de.infolektuell.gradle.astro.AstroPlugin"
}
}

signing {
// Get credentials from env variables for better CI compatibility
val signingKey: String? by project
val signingPassword: String? by project
useInMemoryPgpKeys(signingKey, signingPassword)
}

// Add a source set for the functional test suite
val functionalTestSourceSet = sourceSets.create("functionalTest") {
}
Expand Down

0 comments on commit 25ef011

Please sign in to comment.