hmmmm maybe not supposed to include these bin folders, ..... guess we'll find out later
Some checks failed
OpenOSRS - CI (push) / Build (push) Has been cancelled
OpenOSRS - CI (push) / Test (push) Has been cancelled
OpenOSRS - CI (push) / Checkstyle main (push) Has been cancelled
OpenOSRS - CI (push) / Checkstyle test (push) Has been cancelled
OpenOSRS - Stale issues and PRs / stale (push) Has been cancelled
OpenOSRS - Scraper / scrape-npcs (push) Has been cancelled
OpenOSRS - Gradle Dependencies / update-wrapper (push) Has been cancelled
Some checks failed
OpenOSRS - CI (push) / Build (push) Has been cancelled
OpenOSRS - CI (push) / Test (push) Has been cancelled
OpenOSRS - CI (push) / Checkstyle main (push) Has been cancelled
OpenOSRS - CI (push) / Checkstyle test (push) Has been cancelled
OpenOSRS - Stale issues and PRs / stale (push) Has been cancelled
OpenOSRS - Scraper / scrape-npcs (push) Has been cancelled
OpenOSRS - Gradle Dependencies / update-wrapper (push) Has been cancelled
This commit is contained in:
@@ -23,33 +23,32 @@
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
import org.ajoberstar.grgit.Grgit
|
||||
import java.io.BufferedReader
|
||||
import java.io.InputStreamReader
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
mavenLocal()
|
||||
gradlePluginPortal()
|
||||
maven(url = "https://raw.githubusercontent.com/open-osrs/hosting/master")
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath("org.ajoberstar.grgit:grgit-core:4.1.0")
|
||||
classpath("com.openosrs:script-assembler-plugin:1.0.0")
|
||||
classpath("com.openosrs:injector-plugin:2.0.1")
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id("org.ajoberstar.grgit") version "4.1.0"
|
||||
|
||||
application
|
||||
}
|
||||
|
||||
val localGitCommit: String = try {
|
||||
val projectPath = rootProject.projectDir.absolutePath
|
||||
Grgit.open(mapOf("dir" to projectPath)).head().id
|
||||
} catch (_: Exception) {
|
||||
"n/a"
|
||||
}
|
||||
val proc = ProcessBuilder("git", "rev-parse", "HEAD")
|
||||
.directory(rootProject.projectDir)
|
||||
.redirectErrorStream(true)
|
||||
.start()
|
||||
proc.waitFor()
|
||||
BufferedReader(InputStreamReader(proc.inputStream)).readText().trim()
|
||||
.ifEmpty { "n/a" }
|
||||
} catch (_: Exception) { "n/a" }
|
||||
|
||||
allprojects {
|
||||
group = "com.openosrs"
|
||||
@@ -142,8 +141,8 @@ subprojects {
|
||||
|
||||
tasks {
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_11
|
||||
targetCompatibility = JavaVersion.VERSION_11
|
||||
sourceCompatibility = JavaVersion.VERSION_21
|
||||
targetCompatibility = JavaVersion.VERSION_21
|
||||
}
|
||||
|
||||
withType<AbstractArchiveTask> {
|
||||
|
||||
Reference in New Issue
Block a user