Skip to content

Commit

Permalink
Remove gradle warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ghokun committed May 6, 2024
1 parent 4a0eafd commit 6e9c262
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
9 changes: 6 additions & 3 deletions build.gradle
Expand Up @@ -14,7 +14,7 @@ repositories {

group = "dev.gokhun"

def generatedSources = "${buildDir}/generated"
def generatedSources = "${layout.buildDirectory}/generated"
def taskGroup = "convert"
def os = org.gradle.internal.os.OperatingSystem.current()
def osName = os.isMacOsX() ? os.getNativePrefix() : os.getFamilyName()
Expand Down Expand Up @@ -83,6 +83,9 @@ dependencies {

application {
mainClass = "dev.gokhun.convert.Convert"
}

java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
Expand Down Expand Up @@ -110,10 +113,10 @@ tasks.register("copyBinaries", Copy) {
group = taskGroup
mustRunAfter("nativeCompile")

def binDir = file("${buildDir}/native/${archiveName}/bin/")
def binDir = file("${layout.buildDirectory}/native/${archiveName}/bin/")
binDir.parentFile.mkdirs()

from "${buildDir}/native/nativeCompile/convert"
from "${layout.buildDirectory}/native/nativeCompile/convert"
into binDir
}

Expand Down
@@ -0,0 +1,9 @@

package dev.gokhun.convert;

final class VersionProvider implements picocli.CommandLine.IVersionProvider {
@Override
public String[] getVersion() throws Exception {
return new String[] {"0.0.0-SNAPSHOT"};
}
}

0 comments on commit 6e9c262

Please sign in to comment.