Skip to content

Commit

Permalink
Set version to 0.7.2, some small cleanups in buildscript
Browse files Browse the repository at this point in the history
  • Loading branch information
jwharm committed Oct 3, 2023
1 parent 52a7c89 commit 889db56
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions buildSrc/src/main/groovy/java-gi.library-conventions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dependencies {
}

group = 'io.github.jwharm.javagi'
version = '0.7.2-SNAPSHOT'
version = '0.7.2'

java {
if (! System.getenv('CI')) {
Expand All @@ -46,17 +46,16 @@ java {
tasks.register('generateSources', GenerateSources) {
// Input directory should point to a clone of the GitHub gircore/gir-files
// repository. The location is set in gradle.properties. Default is '../gir-files'
inputDirectory = project.rootDir.toPath().resolve(girFilesLocation).toFile()
inputDirectory = new File(rootDir, girFilesLocation)

// Write generated sources to build/generated/sources/java-gi
outputDirectory = layout.buildDirectory.get().dir('generated').dir('sources').dir('java-gi').asFile
outputDirectory = layout.buildDirectory.dir("generated/sources/java-gi")
}

// Add the generated sources to the main sourceSet
sourceSets.main.java.srcDirs += ['build/generated/sources/java-gi']
sourceSets.main.java.srcDir(generateSources)

tasks.named('compileJava') {
dependsOn generateSources
options.compilerArgs += '--enable-preview'
options.encoding = 'UTF-8'
}
Expand All @@ -71,10 +70,6 @@ tasks.named('javadoc') {
options.encoding = 'UTF-8'
}

tasks.named('sourcesJar') {
dependsOn generateSources
}

tasks.named('compileTestJava') {
options.compilerArgs += '--enable-preview'
options.encoding = 'UTF-8'
Expand Down

0 comments on commit 889db56

Please sign in to comment.