Skip to content

Commit

Permalink
Move some tasks to core and other misc cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Dec 21, 2024
1 parent 6cad4e7 commit f0563fd
Show file tree
Hide file tree
Showing 19 changed files with 29 additions and 28 deletions.
1 change: 1 addition & 0 deletions paperweight-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dependencies {
implementation(variantOf(libs.diffpatch) { classifier("all") }) {
isTransitive = false
}
implementation(libs.bundles.cadix)
shade(libs.jgit)

testImplementation(project(":paperweight-lib", "testClassesJar"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
package io.papermc.paperweight.core.taskcontainers

import io.papermc.paperweight.DownloadService
import io.papermc.paperweight.core.coreExt
import io.papermc.paperweight.core.extension.PaperweightCoreExtension
import io.papermc.paperweight.core.util.coreExt
import io.papermc.paperweight.tasks.*
import io.papermc.paperweight.util.*
import io.papermc.paperweight.util.constants.*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@

package io.papermc.paperweight.core.taskcontainers

import io.papermc.paperweight.core.coreExt
import io.papermc.paperweight.core.extension.ForkConfig
import io.papermc.paperweight.core.tasks.ImportLibraryFiles
import io.papermc.paperweight.core.tasks.IndexLibraryFiles
import io.papermc.paperweight.core.tasks.SetupMinecraftSources
import io.papermc.paperweight.core.tasks.SetupPaperScript
import io.papermc.paperweight.core.util.coreExt
import io.papermc.paperweight.tasks.*
import io.papermc.paperweight.tasks.mache.DecompileJar
import io.papermc.paperweight.tasks.mache.RemapJar
import io.papermc.paperweight.tasks.softspoon.ImportLibraryFiles
import io.papermc.paperweight.tasks.softspoon.IndexLibraryFiles
import io.papermc.paperweight.tasks.softspoon.SetupPaperScript
import io.papermc.paperweight.util.*
import io.papermc.paperweight.util.constants.*
import io.papermc.paperweight.util.data.mache.*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
package io.papermc.paperweight.core.taskcontainers

import io.papermc.paperweight.DownloadService
import io.papermc.paperweight.core.coreExt
import io.papermc.paperweight.core.extension.PaperweightCoreExtension
import io.papermc.paperweight.core.util.coreExt
import io.papermc.paperweight.tasks.*
import io.papermc.paperweight.util.*
import io.papermc.paperweight.util.constants.*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
package io.papermc.paperweight.core.taskcontainers

import io.papermc.paperweight.core.extension.ForkConfig
import io.papermc.paperweight.core.tasks.ImportLibraryFiles
import io.papermc.paperweight.core.tasks.SetupForkMinecraftSources
import io.papermc.paperweight.core.tasks.patching.ApplyFeaturePatches
import io.papermc.paperweight.core.tasks.patching.ApplyFilePatches
import io.papermc.paperweight.core.tasks.patching.ApplyFilePatchesFuzzy
import io.papermc.paperweight.core.tasks.patching.FixupFilePatches
import io.papermc.paperweight.core.tasks.patching.RebuildFilePatches
import io.papermc.paperweight.tasks.*
import io.papermc.paperweight.tasks.softspoon.ApplyFeaturePatches
import io.papermc.paperweight.tasks.softspoon.FixupFilePatches
import io.papermc.paperweight.tasks.softspoon.ImportLibraryFiles
import io.papermc.paperweight.tasks.softspoon.RebuildFilePatches
import io.papermc.paperweight.util.*
import io.papermc.paperweight.util.constants.*
import java.nio.file.Path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@

package io.papermc.paperweight.core.taskcontainers

import io.papermc.paperweight.core.tasks.patching.ApplyFeaturePatches
import io.papermc.paperweight.core.tasks.patching.ApplyFilePatches
import io.papermc.paperweight.core.tasks.patching.ApplyFilePatchesFuzzy
import io.papermc.paperweight.core.tasks.patching.FixupFilePatches
import io.papermc.paperweight.core.tasks.patching.RebuildFilePatches
import io.papermc.paperweight.tasks.*
import io.papermc.paperweight.tasks.softspoon.ApplyFeaturePatches
import io.papermc.paperweight.tasks.softspoon.FixupFilePatches
import io.papermc.paperweight.tasks.softspoon.RebuildFilePatches
import io.papermc.paperweight.util.*
import io.papermc.paperweight.util.constants.paperTaskOutput
import java.nio.file.Path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@

package io.papermc.paperweight.core.taskcontainers

import io.papermc.paperweight.core.coreExt
import io.papermc.paperweight.core.extension.PaperweightCoreExtension
import io.papermc.paperweight.core.util.coreExt
import io.papermc.paperweight.tasks.*
import io.papermc.paperweight.util.*
import io.papermc.paperweight.util.constants.*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* USA
*/

package io.papermc.paperweight.tasks.softspoon
package io.papermc.paperweight.core.tasks

import com.github.salomonbrys.kotson.typeToken
import io.papermc.paperweight.PaperweightException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@

package io.papermc.paperweight.core.tasks

import io.papermc.paperweight.core.util.ApplySourceATs
import io.papermc.paperweight.tasks.*
import io.papermc.paperweight.tasks.softspoon.ApplySourceATs
import io.papermc.paperweight.util.*
import kotlin.io.path.*
import org.eclipse.jgit.api.Git
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ package io.papermc.paperweight.core.tasks
import codechicken.diffpatch.cli.PatchOperation
import codechicken.diffpatch.util.LoggingOutputStream
import codechicken.diffpatch.util.archiver.ArchiveFormat
import io.papermc.paperweight.core.util.ApplySourceATs
import io.papermc.paperweight.tasks.*
import io.papermc.paperweight.tasks.softspoon.ApplySourceATs
import io.papermc.paperweight.util.*
import java.nio.file.Path
import java.util.function.Predicate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* USA
*/

package io.papermc.paperweight.tasks.softspoon
package io.papermc.paperweight.core.tasks

import io.papermc.paperweight.tasks.*
import io.papermc.paperweight.util.*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* USA
*/

package io.papermc.paperweight.tasks.softspoon
package io.papermc.paperweight.core.tasks.patching

import io.papermc.paperweight.tasks.*
import io.papermc.paperweight.util.*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* USA
*/

package io.papermc.paperweight.tasks.softspoon
package io.papermc.paperweight.core.tasks.patching

import io.papermc.paperweight.tasks.*
import io.papermc.paperweight.util.*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@
* USA
*/

package io.papermc.paperweight.tasks.softspoon
package io.papermc.paperweight.core.tasks.patching

import codechicken.diffpatch.cli.DiffOperation
import codechicken.diffpatch.util.LogLevel
import codechicken.diffpatch.util.LoggingOutputStream
import io.papermc.paperweight.PaperweightException
import io.papermc.paperweight.core.util.ApplySourceATs
import io.papermc.paperweight.tasks.*
import io.papermc.paperweight.util.*
import java.io.PrintStream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* USA
*/

package io.papermc.paperweight.tasks.softspoon
package io.papermc.paperweight.core.util

import io.papermc.paperweight.util.*
import java.nio.file.Path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* USA
*/

package io.papermc.paperweight.core
package io.papermc.paperweight.core.util

import io.papermc.paperweight.core.extension.PaperweightCoreExtension
import io.papermc.paperweight.util.constants.*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@
* USA
*/

package io.papermc.paperweight.core.tasks
package io.papermc.paperweight.core.tasks.patching

import io.papermc.paperweight.core.tasks.patching.ApplyFilePatches
import io.papermc.paperweight.tasks.*
import java.nio.file.Path
import kotlin.test.BeforeTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* USA
*/

package io.papermc.paperweight.tasks.softspoon
package io.papermc.paperweight.core.tasks.patching

import io.papermc.paperweight.tasks.*
import java.nio.file.Path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
* USA
*/

package io.papermc.paperweight.tasks.softspoon
package io.papermc.paperweight.core.util

import io.papermc.paperweight.tasks.*

class ApplySourceATTest : TaskTest() {
class ApplySourceATsTest : TaskTest() {
/* TODO: re-add a test for this
private lateinit var task: ApplySourceAT
Expand Down

0 comments on commit f0563fd

Please sign in to comment.