Skip to content

Commit 22002c1

Browse files
committed
Add support for white and blacklist via command line
Add support for bundled server jars
1 parent f5da113 commit 22002c1

File tree

7 files changed

+356
-451
lines changed

7 files changed

+356
-451
lines changed

Jenkinsfile

Lines changed: 0 additions & 93 deletions
This file was deleted.

LICENSE-header.txt

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,2 @@
1-
MergeTool
2-
Copyright (c) 2016-2018.
3-
4-
This library is free software; you can redistribute it and/or
5-
modify it under the terms of the GNU Lesser General Public
6-
License as published by the Free Software Foundation version 2.1
7-
of the License.
8-
9-
This library is distributed in the hope that it will be useful,
10-
but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12-
Lesser General Public License for more details.
13-
14-
You should have received a copy of the GNU Lesser General Public
15-
License along with this library; if not, write to the Free Software
16-
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1+
Copyright (c) Forge Development LLC
2+
SPDX-License-Identifier: LGPL-2.1-only

build.gradle

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ plugins {
55
id 'java'
66
id 'eclipse'
77
id 'maven-publish'
8-
id 'org.cadixdev.licenser' version '0.6.1'
8+
id 'net.minecraftforge.licenser' version '1.0.1'
99
id 'com.github.johnrengelman.shadow' version '8.1.1'
10-
id 'com.github.ben-manes.versions' version '0.47.0'
11-
id 'net.minecraftforge.gradleutils' version '2.+'
10+
id 'com.github.ben-manes.versions' version '0.51.0'
11+
id 'net.minecraftforge.gradleutils' version '[2.3,2.4]'
1212
}
1313

1414
group = 'net.minecraftforge'
@@ -32,12 +32,17 @@ java {
3232
withSourcesJar()
3333
}
3434

35-
tasks.named('jar', Jar).configure {
35+
tasks.register('copyMarkers', Copy).configure {
3636
from(configurations.markers.collect { zipTree(it) } ) {
3737
into 'markers'
3838
include '**/*.class'
3939
rename { it.replace('.class', '.marker') }
4040
}
41+
includeEmptyDirs = false
42+
into project.layout.buildDirectory.dir('copyMarkers')
43+
}
44+
45+
tasks.named('jar', Jar).configure {
4146
manifest {
4247
attributes('Main-Class': 'net.minecraftforge.mergetool.ConsoleMerger')
4348
attributes('Implementation-Version': project.version)
@@ -48,27 +53,30 @@ tasks.named('shadowJar', ShadowJar).configure {
4853
archiveClassifier = 'fatjar'
4954
}
5055

56+
sourceSets {
57+
main {
58+
resources {
59+
srcDirs += [tasks.named('copyMarkers')]
60+
}
61+
}
62+
}
63+
5164
configurations {
5265
markers
53-
implementation.extendsFrom(markers)
5466
}
5567

5668
dependencies {
5769
implementation 'org.ow2.asm:asm:9.5'
5870
implementation 'org.ow2.asm:asm-tree:9.5'
5971
implementation 'org.ow2.asm:asm-util:9.5'
6072
implementation 'net.sf.jopt-simple:jopt-simple:5.0.4'
61-
implementation 'net.minecraftforge:srgutils:0.4.15'
62-
73+
implementation 'net.minecraftforge:srgutils:0.5.7'
74+
6375
markers 'net.minecraftforge:mergetool-cpw:1.0'
6476
markers 'net.minecraftforge:mergetool-fml:1.0'
6577
markers 'net.minecraftforge:mergetool-api:1.0'
6678
}
6779

68-
artifacts {
69-
archives shadowJar
70-
}
71-
7280
publishing {
7381
publications.register('mavenJava', MavenPublication) {
7482
from components.java
@@ -79,7 +87,7 @@ publishing {
7987
name = 'MergeTool'
8088
description = 'Merges two jar files together, useful for rebuilding Retroguard stripped jars.'
8189
url = 'https://github.com/MinecraftForge/MergeTool'
82-
90+
8391
PomUtils.setGitHubDetails(pom, 'MergeTool')
8492

8593
license PomUtils.Licenses.LGPLv2_1
@@ -89,8 +97,8 @@ publishing {
8997
}
9098
}
9199
}
92-
100+
93101
repositories {
94-
maven gradleutils.getPublishingForgeMaven()
102+
maven gradleutils.publishingForgeMaven
95103
}
96104
}

src/main/java/net/minecraftforge/mergetool/AnnotationVersion.java

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,6 @@
11
/*
2-
* MergeTool
3-
* Copyright (c) 2016-2018.
4-
*
5-
* This library is free software; you can redistribute it and/or
6-
* modify it under the terms of the GNU Lesser General Public
7-
* License as published by the Free Software Foundation version 2.1
8-
* of the License.
9-
*
10-
* This library is distributed in the hope that it will be useful,
11-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13-
* Lesser General Public License for more details.
14-
*
15-
* You should have received a copy of the GNU Lesser General Public
16-
* License along with this library; if not, write to the Free Software
17-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2+
* Copyright (c) Forge Development LLC
3+
* SPDX-License-Identifier: LGPL-2.1-only
184
*/
195
package net.minecraftforge.mergetool;
206

0 commit comments

Comments
 (0)