File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
src/main/groovy/net/minecraftforge/forgedev/legacy Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ public void apply(Project project) {
6969 var eclipse = project .getExtensions ().getByType (EclipseModel .class );
7070
7171 eclipse .synchronizationTasks (
72+ processResources ,
7273 tasks .named ("eclipseClasspath" , GenerateEclipseClasspath .class ),
7374 tasks .named ("eclipseProject" , GenerateEclipseProject .class )
7475 );
Original file line number Diff line number Diff line change @@ -28,13 +28,6 @@ abstract class WriteManifest extends DefaultTask {
2828 project. tasks. register(' writeManifest' , WriteManifest ). tap { task ->
2929 project. tasks. named(' processResources' , ProcessResources ) {
3030 it. dependsOn(task)
31- it. from(task) { CopySpec copy ->
32- // Take the output from this task and copy it into resources META-INF
33- copy. into(' META-INF' )
34-
35- // Replace duplicate file if it exists
36- copy. duplicatesStrategy = DuplicatesStrategy . INCLUDE
37- }
3831 }
3932
4033 project. afterEvaluate {
@@ -56,7 +49,7 @@ abstract class WriteManifest extends DefaultTask {
5649 @Inject
5750 WriteManifest (ProjectLayout layout ) {
5851 // The output name is ALWAYS "MANIFEST.MF", and output cannot be changed
59- this . output. value(layout. buildDirectory . file(" ${ this.name } /MANIFEST.MF" )). disallowChanges()
52+ this . output. value(layout. projectDirectory . file(" src/main/resources/META-INF /MANIFEST.MF" )). disallowChanges()
6053 }
6154
6255 @TaskAction
You can’t perform that action at this time.
0 commit comments