mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-12-06 11:17:19 +00:00
Reorganize project sources from src/main to src/main/java
This commit is contained in:
1 parent
7ffef28117
commit
05e20d9d51
680 files changed
+225
-171
No files matched your search
+2
-2
@@ -34,13 +34,13 @@ subprojects {
|
||||
sourceSets {
|
||||
main {
|
||||
java {
|
||||
srcDirs = ['src/main']
|
||||
srcDirs = ['src/main/java']
|
||||
}
|
||||
}
|
||||
|
||||
test {
|
||||
java {
|
||||
srcDirs = ['src/test']
|
||||
srcDirs = ['src/test/java']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File renamed without changes.
File renamed without changes.
Vendored
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.
Vendored
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+10
-11
@@ -12,14 +12,12 @@ buildscript {
|
||||
|
||||
apply plugin: 'kotlin'
|
||||
|
||||
sourceSets {
|
||||
main.kotlin.srcDirs += 'src/kotlin'
|
||||
main.kotlin.excludes += 'stub.kt'
|
||||
main.kotlin.excludes += '**/*.kts'
|
||||
ext.pluginsDir = "$projectDir/src/plugins"
|
||||
|
||||
sourceSets {
|
||||
plugins {
|
||||
kotlin {
|
||||
srcDir 'data/plugins'
|
||||
srcDir "$pluginsDir"
|
||||
exclude 'stub.kt'
|
||||
exclude '**/*.kts'
|
||||
}
|
||||
@@ -42,7 +40,10 @@ dependencies {
|
||||
}
|
||||
|
||||
|
||||
task('compilePluginScripts', dependsOn: [classes, pluginsClasses], type: JavaExec) {
|
||||
task compilePluginScripts(type: JavaExec, dependsOn: [classes, pluginsClasses]) {
|
||||
group = LifecycleBasePlugin.BUILD_GROUP
|
||||
description = 'Compile plugin script files (.plugin.kts) to java bytecode'
|
||||
|
||||
def compilerClasspath = [
|
||||
configurations.compile.asPath,
|
||||
configurations.runtime.asPath,
|
||||
@@ -50,17 +51,15 @@ task('compilePluginScripts', dependsOn: [classes, pluginsClasses], type: JavaExe
|
||||
sourceSets.main.runtimeClasspath.asPath
|
||||
]
|
||||
|
||||
def inputDir = "$projectDir/data/plugins"
|
||||
def outputDir = "$buildDir/plugins"
|
||||
def manifestPath = "$buildDir/plugins/manifest.txt"
|
||||
|
||||
inputs.source inputDir
|
||||
inputs.source "$pluginsDir"
|
||||
outputs.dir outputDir
|
||||
|
||||
println compilerClasspath.join(':')
|
||||
classpath = sourceSets.main.compileClasspath + sourceSets.main.runtimeClasspath
|
||||
main = 'org.apollo.game.plugin.kotlin.KotlinPluginCompiler'
|
||||
args = [inputDir, outputDir, manifestPath, compilerClasspath.join(':')]
|
||||
args = ["$pluginsDir", outputDir, manifestPath, compilerClasspath.join(':')]
|
||||
}
|
||||
|
||||
assemble.dependsOn(compilePluginScripts)
|
||||
assemble.dependsOn compilePluginScripts
|
||||
Whitespace-only changes.
Whitespace-only 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.
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.
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.
Loaded 100 of 680 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user