Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Gradle file in my project (need help please)

Featured Replies

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'

}

Edited by jason1337777

  • jason1337777 changed the title to Gradle file in my project (need help please)

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.