Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Zelaux committed Oct 1, 2023
1 parent ebd7e08 commit 0981e6c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,20 @@ repositories{
maven{ url 'https://raw.githubusercontent.com/Zelaux/MindustryRepo/master/repository' }//for Arc
maven{ url 'https://raw.githubusercontent.com/Zelaux/Repo/master/repository' }//for ArcLibrary
}
static String arcLibraryModule(String name){
//module path to full module name
if(name.contains(':')) name = name.split(':').join("-")
return "com.github.Zelaux.ArcLibrary:$name:$arcLibraryVersion"
}
//use this if you do not need Arc in result jar
dependencies{
compileOnly "com.github.Anuken.Arc:arc-core:$arcVersion"
implementation "com.github.Zelaux.ArcLibrary:$fullModuleName:$arcLibraryVersion"
implementation arcLibraryModule("$fullModuleName")
}
//use this if you do need Arc in result jar
dependencies{
implementation "com.github.Anuken.Arc:arc-core:$arcVersion"
implementation "com.github.Zelaux.ArcLibrary:$fullModuleName:$arcLibraryVersion"
implementation arcLibraryModule("$fullModuleName")
}
```

Expand Down

0 comments on commit 0981e6c

Please sign in to comment.