Skip to content

Commit

Permalink
Remove buildDir
Browse files Browse the repository at this point in the history
  • Loading branch information
ghokun committed May 6, 2024
1 parent 0ce4fd9 commit 01fdeae
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions build.gradle
Expand Up @@ -14,7 +14,8 @@ repositories {

group = "dev.gokhun"

def generatedSources = "${buildDir}/generated"
def buildDirectory = layout.buildDirectory.getAsFile().get()
def generatedSources = "${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 +84,9 @@ dependencies {

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

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

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

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

Expand Down

0 comments on commit 01fdeae

Please sign in to comment.