BaseBandRewrite/Installer/build.gradle
2023-10-03 20:18:24 +02:00

63 lines
No EOL
1.2 KiB
Groovy

import javax.swing.JOptionPane
buildscript {
repositories {
mavenCentral()
maven {
name = 'SpongePowered'
url = 'https://repo.spongepowered.org/maven'
}
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:4.0.4'
}
}
plugins {
id 'java'
}
apply plugin: 'com.github.johnrengelman.shadow'
group 'org.baseband'
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
repositories {
maven {
name = 'spongepowered-repo'
url = 'https://repo.spongepowered.org/maven'
}
maven {
name = "jitpack.io"
url = "https://jitpack.io"
}
jcenter()
mavenCentral()
google()
}
dependencies {
implementation 'org.json:json:20230227'
}
shadowJar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
dependencies {
include(dependency('org.json:json:20220320'))
}
baseName = "Installer"
version = "1.0.0"
manifest {
attributes(
'Main-Class': 'org.baseband.installer.Installer'
)
}
}
build.dependsOn(shadowJar)