Skip to content

Commit

Permalink
Add support for white and blacklist via command line
Browse files Browse the repository at this point in the history
Add support for bundled server jars
  • Loading branch information
LexManos committed Feb 2, 2024
1 parent f5da113 commit 22002c1
Show file tree
Hide file tree
Showing 7 changed files with 356 additions and 451 deletions.
93 changes: 0 additions & 93 deletions Jenkinsfile

This file was deleted.

18 changes: 2 additions & 16 deletions LICENSE-header.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,2 @@
MergeTool
Copyright (c) 2016-2018.

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation version 2.1
of the License.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Copyright (c) Forge Development LLC
SPDX-License-Identifier: LGPL-2.1-only
36 changes: 22 additions & 14 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ plugins {
id 'java'
id 'eclipse'
id 'maven-publish'
id 'org.cadixdev.licenser' version '0.6.1'
id 'net.minecraftforge.licenser' version '1.0.1'
id 'com.github.johnrengelman.shadow' version '8.1.1'
id 'com.github.ben-manes.versions' version '0.47.0'
id 'net.minecraftforge.gradleutils' version '2.+'
id 'com.github.ben-manes.versions' version '0.51.0'
id 'net.minecraftforge.gradleutils' version '[2.3,2.4]'
}

group = 'net.minecraftforge'
Expand All @@ -32,12 +32,17 @@ java {
withSourcesJar()
}

tasks.named('jar', Jar).configure {
tasks.register('copyMarkers', Copy).configure {
from(configurations.markers.collect { zipTree(it) } ) {
into 'markers'
include '**/*.class'
rename { it.replace('.class', '.marker') }
}
includeEmptyDirs = false
into project.layout.buildDirectory.dir('copyMarkers')
}

tasks.named('jar', Jar).configure {
manifest {
attributes('Main-Class': 'net.minecraftforge.mergetool.ConsoleMerger')
attributes('Implementation-Version': project.version)
Expand All @@ -48,27 +53,30 @@ tasks.named('shadowJar', ShadowJar).configure {
archiveClassifier = 'fatjar'
}

sourceSets {
main {
resources {
srcDirs += [tasks.named('copyMarkers')]
}
}
}

configurations {
markers
implementation.extendsFrom(markers)
}

dependencies {
implementation 'org.ow2.asm:asm:9.5'
implementation 'org.ow2.asm:asm-tree:9.5'
implementation 'org.ow2.asm:asm-util:9.5'
implementation 'net.sf.jopt-simple:jopt-simple:5.0.4'
implementation 'net.minecraftforge:srgutils:0.4.15'
implementation 'net.minecraftforge:srgutils:0.5.7'

markers 'net.minecraftforge:mergetool-cpw:1.0'
markers 'net.minecraftforge:mergetool-fml:1.0'
markers 'net.minecraftforge:mergetool-api:1.0'
}

artifacts {
archives shadowJar
}

publishing {
publications.register('mavenJava', MavenPublication) {
from components.java
Expand All @@ -79,7 +87,7 @@ publishing {
name = 'MergeTool'
description = 'Merges two jar files together, useful for rebuilding Retroguard stripped jars.'
url = 'https://github.com/MinecraftForge/MergeTool'

PomUtils.setGitHubDetails(pom, 'MergeTool')

license PomUtils.Licenses.LGPLv2_1
Expand All @@ -89,8 +97,8 @@ publishing {
}
}
}

repositories {
maven gradleutils.getPublishingForgeMaven()
maven gradleutils.publishingForgeMaven
}
}
18 changes: 2 additions & 16 deletions src/main/java/net/minecraftforge/mergetool/AnnotationVersion.java
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
/*
* MergeTool
* Copyright (c) 2016-2018.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation version 2.1
* of the License.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* Copyright (c) Forge Development LLC
* SPDX-License-Identifier: LGPL-2.1-only
*/
package net.minecraftforge.mergetool;

Expand Down
Loading

0 comments on commit 22002c1

Please sign in to comment.