Removed API module

For now the core module will be what is used to communicate with the plugin rather than a specific API package.
This commit is contained in:
Sekwah 2021-05-26 02:25:17 +01:00
parent ce94280b45
commit 40e4b2fc7a
No known key found for this signature in database
GPG Key ID: C3BE2E6C861A461A
5 changed files with 10 additions and 45 deletions

View File

@ -7,11 +7,11 @@ An advanced portals plugin for bukkit made by sekwah41 designed to have a wide r
**NOTE:** This is the rewrite that is in progress to also allow multiple platforms of server mods, if you are looking for the old version or this version isn't finished check the branch [portals-old](https://github.com/sekwah41/Advanced-Portals/tree/portals-old)
# Module Layout
Each implementation will contain the proxy code to allow re-use of the same jar files.
Though due to incompatibilities and keeping the files smaller, we will be making the spigot/paper versions available [here](https://dev.bukkit.org/projects/advanced-portals/files).
We are still planning on how to distribute the files though are planning to make one jar at least run spigot and the proxies.
Originally the API was also supposed to be a separate module though due to possible forge versions and other reasons decided
it would probably be best to not separate it out.
## Common
* **api**: All code for adding tags and creating addons.
* **core**: Functional code with an abstraction layer to create consistent behavior between platforms.
* **core**: Functional code with an abstraction layer to create consistent behavior between platforms as well as making addons.
* **lang**: Translations of the plugin available by default.
## Implementations

View File

@ -1,35 +0,0 @@
apply plugin: 'maven-publish'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'java'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
configurations {
// configuration that holds jars to copy into lib
includeLibs
}
repositories {
maven { url "https://repo.maven.apache.org/maven2" }
}
// includeLibs just says to include the library in the final jar
dependencies {
}
jar {
from configurations.includeLibs.collect { it.isDirectory() ? it : zipTree(it) }
}
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this task, sources will not be generated.
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

View File

@ -63,6 +63,7 @@ repositories {
maven { url "https://repo.maven.apache.org/maven2" }
maven { url "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://nexus.velocitypowered.com/repository/maven-public/" }
}
// includeLibs just says to include the library in the final jar

View File

@ -19,11 +19,11 @@ repositories {
// includeLibs just says to include the library in the final jar
dependencies {
includeLibs group: 'com.google.code.gson', name: 'gson', version:'2.8.2'
compile group: 'com.google.code.gson', name: 'gson', version:'2.8.2'
includeLibs group: 'com.google.inject', name: 'guice', version:'4.0'
compile group: 'com.google.inject', name: 'guice', version:'4.0'
compile group: 'com.google.guava', name: 'guava', version: '29.0-jre'
includeLibs group: 'com.google.code.gson', name: 'gson', version:'2.8.7'
compile group: 'com.google.code.gson', name: 'gson', version:'2.8.7'
includeLibs group: 'com.google.inject', name: 'guice', version:'5.0.1'
compile group: 'com.google.inject', name: 'guice', version:'5.0.1'
compile group: 'com.google.guava', name: 'guava', version: '30.1.1-jre'
}
jar {

View File

@ -1,7 +1,6 @@
rootProject.name = "advanced-portals"
// Core modules
include 'core'
include 'api'
include 'lang'
// Implementations