Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
waicool20 committed Dec 4, 2023
1 parent aaf3ea4 commit 807eecc
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 10 deletions.
1 change: 0 additions & 1 deletion .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion deps/CVAuto
Submodule CVAuto updated 1 files
+2 −2 build.gradle.kts
2 changes: 1 addition & 1 deletion modules/assets/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ tasks {
withType<AbstractArchiveTask>().configureEach {
isPreserveFileTimestamps = false
isReproducibleFileOrder = true
destinationDirectory.set(file("$buildDir/artifacts/"))
destinationDirectory.set(file("${layout.buildDirectory.asFile.get()}/artifacts/"))
from(projectDir)
into("assets")

Expand Down
4 changes: 2 additions & 2 deletions modules/core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ tasks {
archiveFileName.set("${rootProject.name}-${project.name.capitalized()}.jar")
archiveClassifier.set("")
archiveVersion.set("")
destinationDirectory.set(file("${layout.buildDirectory}/artifacts/"))
destinationDirectory.set(file("${layout.buildDirectory.asFile.get()}/artifacts/"))
manifest { attributes(mapOf("Main-Class" to "com.waicool20.wai2k.Wai2kKt")) }
dependencies { include { it.moduleGroup.startsWith("com.waicool20") } }
}
Expand All @@ -131,7 +131,7 @@ tasks {

task<Zip>("packLibs") {
archiveFileName.set("libs.zip")
destinationDirectory.set(file("${layout.buildDirectory}/artifacts/"))
destinationDirectory.set(file("${layout.buildDirectory.asFile.get()}/artifacts/"))
from(project.configurations.filter { it.isCanBeResolved })
exclude { f -> gradle.includedBuilds.any { b -> f.name.contains(b.name, true) } }
into("libs")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
package com.waicool20.wai2k.game

import com.waicool20.cvauto.core.template.FT
import com.waicool20.cvauto.core.template.FileTemplate
import com.waicool20.wai2k.script.ScriptComponent
import com.waicool20.wai2k.util.digitsOnly
import com.waicool20.wai2k.util.loggerFor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import com.waicool20.wai2k.util.useCharFilter
import kotlinx.coroutines.delay
import kotlinx.coroutines.isActive
import kotlinx.coroutines.yield
import java.awt.Color
import java.awt.Point
import kotlin.coroutines.coroutineContext
import kotlin.random.Random
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ import org.opencv.core.Core
import org.opencv.core.Mat
import org.opencv.core.MatOfPoint2f
import org.opencv.core.Point
import tornadofx.*
import java.awt.Rectangle
import kotlin.io.path.exists
import kotlin.io.path.notExists
Expand Down
2 changes: 1 addition & 1 deletion modules/launcher/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ tasks {
archiveFileName.set("${rootProject.name}-${project.name.capitalized()}.jar")
archiveClassifier.set("")
archiveVersion.set("")
destinationDirectory.set(file("$${layout.buildDirectory}/artifacts/"))
destinationDirectory.set(file("$${layout.buildDirectory.asFile.get()}/artifacts/"))
manifest { attributes(mapOf("Main-Class" to "com.waicool20.wai2k.launcher.Main")) }
}
}

0 comments on commit 807eecc

Please sign in to comment.