forked from open-osrs/runelite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request open-osrs#3225 from open-osrs/update
project: Merge upstream
- Loading branch information
Showing
109 changed files
with
3,456 additions
and
8,313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/* | ||
* Copyright (c) 2021, ThatGamerBlue <[email protected]> | ||
* Copyright (c) 2022, Owain van Brakel <https://github.com/Owain94> | ||
* All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
|
@@ -22,10 +23,60 @@ | |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
package com.openosrs.injector; | ||
|
||
public enum OutputMode | ||
{ | ||
FILES, | ||
JAR | ||
apply<FernflowerPlugin>() | ||
|
||
description = "Injected Client" | ||
|
||
plugins { | ||
id("com.openosrs.injector") | ||
} | ||
|
||
val vanillaDep by configurations.creating | ||
val rsapiDep by configurations.creating | ||
val rsclientDep by configurations.creating | ||
val mixinsDep by configurations.creating | ||
val combined by configurations.creating { | ||
extendsFrom(rsapiDep, rsclientDep, mixinsDep, vanillaDep) | ||
isCanBeResolved = true | ||
isCanBeConsumed = false | ||
} | ||
|
||
configurations { | ||
all { | ||
isTransitive = false | ||
} | ||
} | ||
|
||
dependencies { | ||
vanillaDep(group = "net.runelite.rs", name = "vanilla", version = ProjectVersions.rsversion.toString()) | ||
rsapiDep(project(":runescape-api")) | ||
rsclientDep(project(":runescape-client")) | ||
mixinsDep(project(":runelite-mixins")) | ||
} | ||
|
||
injector { | ||
mixins.set(mixinsDep.singleFile) | ||
rsapi.set(rsapiDep.singleFile) | ||
rsclient.set(rsclientDep.singleFile) | ||
vanilla.set(vanillaDep.singleFile) | ||
} | ||
|
||
// keep the sourcesets etc but remove useless tasks | ||
tasks { | ||
inject { | ||
dependsOn(combined) | ||
} | ||
classes { | ||
enabled = false | ||
} | ||
compileJava { | ||
enabled = false | ||
} | ||
jar { | ||
enabled = false | ||
} | ||
processResources { | ||
enabled = false | ||
} | ||
} |
Oops, something went wrong.