Skip to content

Commit

Permalink
更名src -> eplugin-core
Browse files Browse the repository at this point in the history
  • Loading branch information
4o4E committed Sep 25, 2022
1 parent c577d1a commit ee2084b
Show file tree
Hide file tree
Showing 31 changed files with 54 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies {
implementation(kotlinx("serialization-core-jvm", "1.3.3"))

// eplugin
testImplementation(rootProject)
testImplementation(project(":eplugin-core"))
// spigot
testImplementation("org.spigotmc:spigot-api:${Versions.spigot}")
}
Expand Down
52 changes: 52 additions & 0 deletions eplugin-core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
kotlin("jvm")
kotlin("plugin.serialization")
`maven-publish`
`java-library`
}

group = Versions.group
version = Versions.version

repositories {
// spigot
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://oss.sonatype.org/content/groups/public/")
mavenCentral()
mavenLocal()
}

dependencies {
// spigot
compileOnly("org.spigotmc:spigot-api:${Versions.spigot}")
// bstats
implementation("org.bstats:bstats-bukkit:3.0.0")
implementation(kotlinx("serialization-core-jvm", "1.3.3"))

// eplugin
testImplementation(project(":eplugin-core"))
// spigot
testImplementation("org.spigotmc:spigot-api:${Versions.spigot}")
}

tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}

java {
withJavadocJar()
withSourcesJar()
}

afterEvaluate {
publishing.publications.create<MavenPublication>("java") {
from(components["kotlin"])
artifact(tasks.getByName("sourcesJar"))
artifact(tasks.getByName("javadocJar"))
artifactId = "eplugin-core"
groupId = Versions.group
version = Versions.version
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
rootProject.name = "EPlugin"
include(
":eplugin-core",
":eplugin-serialization",
":eplugin-serialization-worldguard",
":eplugin-menu",
Expand Down

0 comments on commit ee2084b

Please sign in to comment.