Skip to content

Commit

Permalink
Changed plugin dependencies to another repository
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerBenGera committed Dec 11, 2022
1 parent 57c19b0 commit dc131f5
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 45 deletions.
4 changes: 2 additions & 2 deletions API/build.gradle
Expand Up @@ -16,8 +16,8 @@ publishing {
}

repositories {
String mavenUsername = System.getenv('mavenUsername') == null ? project.mavenUsername : System.getenv('mavenUsername');
String mavenPassword = System.getenv('mavenPassword') == null ? project.mavenUsername : System.getenv('mavenPassword');
String mavenUsername = System.getenv('mavenUsername');
String mavenPassword = System.getenv('mavenPassword');

if (mavenUsername != null && mavenPassword != null) {
maven {
Expand Down
2 changes: 1 addition & 1 deletion Hook_CMI/build.gradle
@@ -1,7 +1,7 @@
group 'Hook_CMI'

dependencies {
compileOnly "com.zrips:CMI:latest"
compileOnly "com.Zrips:CMI:8.5.1.4"
compileOnly "org.spigotmc:v1_8_R3-Taco:latest"
compileOnly project(":API")
compileOnly parent
Expand Down
2 changes: 1 addition & 1 deletion Hook_ChestShop/build.gradle
@@ -1,7 +1,7 @@
group 'Hook_ChestShop'

dependencies {
compileOnly "com.acrobot:ChestShop:latest"
compileOnly "com.acrobot:ChestShop:3.11"
compileOnly "org.spigotmc:v1_16_R3:latest"
compileOnly project(":API")
compileOnly parent
Expand Down
2 changes: 1 addition & 1 deletion Hook_CoreProtect/build.gradle
@@ -1,7 +1,7 @@
group 'Hook_CoreProtect'

dependencies {
compileOnly 'net.coreprotect:CoreProtect-6:latest'
compileOnly 'net.coreprotect:CoreProtect:19.0'
compileOnly "org.spigotmc:v1_16_R3:latest"
compileOnly project(":API")
compileOnly parent
Expand Down
2 changes: 1 addition & 1 deletion Hook_Essentials/build.gradle
@@ -1,7 +1,7 @@
group 'Hook_Essentials'

dependencies {
compileOnly "com.earth2me:Essentials-2.15:latest"
compileOnly "com.earth2me:Essentials:2.15.0.17"
compileOnly "org.spigotmc:v1_8_R3-Taco:latest"
compileOnly project(":API")
compileOnly parent
Expand Down
4 changes: 2 additions & 2 deletions Hook_QuantumShop/build.gradle
@@ -1,8 +1,8 @@
group 'Hook_QuantumShop'

dependencies {
compileOnly "su.fogus:FogusCore:latest"
compileOnly "su.nightexpress:QuantumShop:latest"
compileOnly "su.fogus:FogusCore:1.9.9"
compileOnly "su.nightexpress:QuantumShop:3.8.0"
compileOnly "org.spigotmc:v1_16_R3:latest"
compileOnly project(":API")
compileOnly parent
Expand Down
2 changes: 1 addition & 1 deletion Hook_ShopGUIPlus12/build.gradle
@@ -1,7 +1,7 @@
group 'Hook_ShopGUIPlus12'

dependencies {
compileOnly 'net.brcdev:ShopGUIPlus-1.20:latest'
compileOnly 'net.brcdev:ShopGUIPlus:1.20.4'
compileOnly "org.spigotmc:v1_16_R3:latest"
compileOnly project(":API")
compileOnly parent
Expand Down
2 changes: 1 addition & 1 deletion Hook_ShopGUIPlus14/build.gradle
@@ -1,7 +1,7 @@
group 'Hook_ShopGUIPlus14'

dependencies {
compileOnly "net.brcdev:ShopGUIPlus-1.43:latest"
compileOnly "net.brcdev:ShopGUIPlus:1.43.2"
compileOnly "org.spigotmc:v1_16_R3:latest"
compileOnly project(":API")
compileOnly parent
Expand Down
2 changes: 1 addition & 1 deletion Hook_ShopGUIPlus78/build.gradle
@@ -1,7 +1,7 @@
group 'Hook_ShopGUIPlus78'

dependencies {
compileOnly 'net.brcdev:ShopGUIPlus-1.78:latest'
compileOnly 'net.brcdev:ShopGUIPlus:1.80.1'
compileOnly "org.spigotmc:v1_8_R3-Taco:latest"
compileOnly project(":API")
compileOnly parent
Expand Down
2 changes: 1 addition & 1 deletion Hook_TransportPipes/build.gradle
Expand Up @@ -7,7 +7,7 @@ java {
}

dependencies {
compileOnly "de.robotricker.transportpipes:TransportPipes:5.4.0"
compileOnly "de.robotricker:TransportPipes:5.4.0"
compileOnly "org.spigotmc:v1_8_R3-Taco:latest"
compileOnly project(":API")
compileOnly parent
Expand Down
2 changes: 1 addition & 1 deletion Hook_Vault/build.gradle
@@ -1,7 +1,7 @@
group 'Hook_Vault'

dependencies {
compileOnly "net.milkbowl:Vault:latest"
compileOnly "net.milkbowl:Vault:1.6.1"
compileOnly "org.spigotmc:v1_16_R3:latest"
compileOnly project(":API")
compileOnly parent
Expand Down
2 changes: 1 addition & 1 deletion Hook_zShop/build.gradle
@@ -1,7 +1,7 @@
group 'Hook_zShop'

dependencies {
compileOnly "fr.maxlego08:zShop:latest"
compileOnly "fr.maxlego08:zShop:2.0.0.7"
compileOnly "org.spigotmc:v1_16_R3:latest"
compileOnly project(":API")
compileOnly parent
Expand Down
13 changes: 0 additions & 13 deletions README.md
Expand Up @@ -16,19 +16,6 @@ You can compile the project using gradlew.<br>
Run `gradlew build` in console to build the project.<br>
You can find already compiled jars on our [Jenkins](https://hub.bg-software.com/) hub!<br>

When compiling you will receive errors about missing dependencies.<br>
These dependencies are premium plugins that cannot be published on a public repository.<br>
You can do either of the followings in order to solve it:
- Add manually all the jar files of the premium plugins.
- Purchase access to our private repository.
- Disabling compiling of the modules of these dependencies in the `gradle.properties` file.

<br>

##### Private Jars:
- QuantumShop by NightExpress [[link]](https://www.spigotmc.org/resources/50696/)
- ShopGUIPlus (v1.20 & v1.43) by brcdev [[link]](https://www.spigotmc.org/resources/6515/)

## API

The plugin is packed with a rich API for interacting with chests and more. When hooking into the plugin, it's highly recommended to only use the API and not the compiled plugin, as the API methods are not only commented, but also will not get removed or changed unless they are marked as deprecated. This means that by using the API, you won't have to do any additional changes to your code between updates.
Expand Down
15 changes: 1 addition & 14 deletions build.gradle
Expand Up @@ -17,20 +17,7 @@ allprojects {
maven { url 'https://repo.bg-software.com/repository/nms/' }
maven { url 'https://repo.bg-software.com/repository/api/' }
maven { url 'https://repo.bg-software.com/repository/common/' }
maven { url 'https://repo.bg-software.com/repository/public-libs/' }

String mavenUsername = System.getenv('mavenUsername') == null ? project.mavenUsername : System.getenv('mavenUsername');
String mavenPassword = System.getenv('mavenPassword') == null ? project.mavenUsername : System.getenv('mavenPassword');

if (mavenUsername != null && mavenPassword != null) {
maven {
url 'https://repo.bg-software.com/repository/private-libs/'
credentials {
username mavenUsername
password mavenPassword
}
}
}
maven { url 'https://repo.bg-software.com/repository/dependencies/' }
}

dependencies {
Expand Down
4 changes: 0 additions & 4 deletions gradle.properties
@@ -1,7 +1,3 @@
# Maven related settings
# Used to access to the private-repository
mavenUsername=''
mavenPassword=''
# Compiling settings
# You can turn-off compiling of specific modules here by setting them to `false`
nms.compile_v1_8=true
Expand Down

0 comments on commit dc131f5

Please sign in to comment.