Can someone help me or tell me where I went wrong with this lol, I’m relatively new to this but I have a full complete script I just need to finish this part.
plugins {
id 'java'
}
version = '0.0.1'
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
ext {
pluginName = 'Zulrah'
pluginDescription = 'Kills Zulrah for you'
osbotVersion = '3.8.0' // Replace with the actual OSBot version you're using
}
repositories {
mavenCentral()
maven {
url = uri('https://osbot.org/maven')
credentials {
username = System.getenv('OSBOT_MAVEN_USERNAME')
password = System.getenv('OSBOT_MAVEN_PASSWORD')
}
}
}
dependencies {
implementation "org.osbot:osbot:${osbotVersion}"
implementation 'org.projectlombok:lombok:1.18.22'
annotationProcessor 'org.projectlombok:lombok:1.18.22'
implementation 'org.slf4j:slf4j-api:1.7.32'
implementation 'ch.qos.logback:logback-classic:1.2.6'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
}
jar {
manifest {
attributes(
'Plugin-Version': project.version,
'Plugin-Id': pluginName.toLowerCase().replace(' ', '-'),
'Plugin-Name': pluginName,
'Plugin-Description': pluginDescription,
'Main-Class': 'net.unethicalite.plugins.zulrah.UnethicalZulrahPlugin'
)
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
test {
useJUnitPlatform()
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
task copyJar(type: Copy) {
from jar
into System.getProperty('user.home') + '/OSBot/Scripts/'
}
task osbot(type: JavaExec) {
main = 'org.osbot.rs07.Boot'
classpath = sourceSets.main.runtimeClasspath
args = ['-bot', jar.archivePath]
}
osbot.dependsOn(copyJar)
// Ensure OSBot API packages are available
sourceSets {
main {
java {
srcDirs 'src/main/java'
include 'org/osbot/rs07/**'
include 'org/osbot/rs07/api/**'
include 'org/osbot/rs07/api/ai/**'
include 'org/osbot/rs07/api/map/**'
include 'org/osbot/rs07/api/model/**'
include 'org/osbot/rs07/api/ui/**'
include 'org/osbot/rs07/api/util/**'
include 'org/osbot/rs07/canvas/**'
include 'org/osbot/rs07/event/**'
include 'org/osbot/rs07/input/**'
include 'org/osbot/rs07/listener/**'
include 'org/osbot/rs07/script/**'
include 'org/osbot/rs07/utility/**'
}
}
}
Should I have just kept it like this but I assume this is wrong also
plugins {
id 'java'
}
version = '0.0.1'
ext {
pluginName = 'Zulrah'
pluginDescription = 'Kills Zulrah for you'
}
jar {
manifest {
attributes(
'Plugin-Version': project.version,
'Plugin-Id': pluginName.toLowerCase().replace(' ', '-'),
'Plugin-Name': pluginName,
'Plugin-Description': pluginDescription
)
}
}
repositories {
mavenCentral()
// Add any other repositories you need
}
dependencies {
// Add your dependencies here
// For example:
// implementation 'org.osbot:osbot-sdk:1.0.0'
}