bootstrap: use jshell

This commit is contained in:
ThatGamerBlue
2021-03-04 18:08:23 +00:00
parent 259d80201a
commit dc6b1cba08
3 changed files with 7 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ class BootstrapPlugin : Plugin<Project> {
bootstrapDependencies(project(":runescape-api")) bootstrapDependencies(project(":runescape-api"))
bootstrapDependencies(project(":http-api")) bootstrapDependencies(project(":http-api"))
bootstrapDependencies(project(":runelite-client")) bootstrapDependencies(project(":runelite-client"))
bootstrapDependencies(project(":runelite-jshell"))
} }
tasks.register<BootstrapTask>("bootstrapStaging", "staging") tasks.register<BootstrapTask>("bootstrapStaging", "staging")
@@ -30,6 +31,7 @@ class BootstrapPlugin : Plugin<Project> {
dependsOn(project(":runelite-api").tasks["publish"]) dependsOn(project(":runelite-api").tasks["publish"])
dependsOn(project(":runescape-api").tasks["publish"]) dependsOn(project(":runescape-api").tasks["publish"])
dependsOn(project(":http-api").tasks["publish"]) dependsOn(project(":http-api").tasks["publish"])
dependsOn(project(":runelite-jshell").tasks["publish"])
doLast { doLast {
copy { copy {
@@ -41,7 +43,8 @@ class BootstrapPlugin : Plugin<Project> {
"${buildDir}/repo/.", "${buildDir}/repo/.",
"${parent?.projectDir}/runelite-api/build/repo/.", "${parent?.projectDir}/runelite-api/build/repo/.",
"${parent?.projectDir}/http-api/build/repo/.", "${parent?.projectDir}/http-api/build/repo/.",
"${parent?.projectDir}/runescape-api/build/repo/." "${parent?.projectDir}/runescape-api/build/repo/.",
"${parent?.projectDir}/runelite-jshell/build/repo/."
) )
into("${buildDir}/bootstrap/repo/${type}") into("${buildDir}/bootstrap/repo/${type}")
} }

View File

@@ -47,7 +47,8 @@ open class BootstrapTask @Inject constructor(@Input val type: String) : DefaultT
if (it.file.name.contains("runelite-client") || if (it.file.name.contains("runelite-client") ||
it.file.name.contains("http-api") || it.file.name.contains("http-api") ||
it.file.name.contains("runescape-api") || it.file.name.contains("runescape-api") ||
it.file.name.contains("runelite-api")) { it.file.name.contains("runelite-api") ||
it.file.name.contains("runelite-jshell")) {
path = "https://github.com/open-osrs/hosting/raw/master/${type}/${it.file.name}" path = "https://github.com/open-osrs/hosting/raw/master/${type}/${it.file.name}"
} else if (it.file.name.contains("injection-annotations")) { } else if (it.file.name.contains("injection-annotations")) {
path = "https://github.com/open-osrs/hosting/raw/master/" + group.replace(".", "/") + "/${name}/$version/${it.file.name}" path = "https://github.com/open-osrs/hosting/raw/master/" + group.replace(".", "/") + "/${name}/$version/${it.file.name}"

View File

@@ -23,6 +23,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
group = "com.openosrs"
description = "RuneLite JShell" description = "RuneLite JShell"
dependencies { dependencies {