Skip to content

Commit

Permalink
Add licenser
Browse files Browse the repository at this point in the history
  • Loading branch information
Technici4n committed Oct 30, 2023
1 parent 98a62a3 commit 680e22f
Show file tree
Hide file tree
Showing 51 changed files with 277 additions and 2 deletions.
12 changes: 10 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ plugins {
id 'net.neoforged.gradleutils' version '[2.0.18,)'
id 'com.github.ben-manes.versions' version '0.42.0'
id 'io.github.gradle-nexus.publish-plugin' version '1.3.0'
id 'net.neoforged.licenser' version '0.7.2' apply false
}
apply plugin: 'maven-publish'

allprojects {
apply plugin: 'java-library'
apply plugin: 'eclipse'
apply plugin: 'de.jjohannes.extra-java-module-info'

apply plugin: 'net.neoforged.licenser'

group 'net.neoforged'
java {
toolchain.languageVersion = JavaLanguageVersion.of(17)
Expand Down Expand Up @@ -62,6 +64,12 @@ allprojects {
}
}
}

license {
header = rootProject.file("codeformat/HEADER.txt")
skipExistingHeaders = true
include '**/*.java'
}
}

changelog {
Expand Down Expand Up @@ -158,4 +166,4 @@ if (System.getenv('GPG_PRIVATE_KEY')) {
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.mavenJava
}
}
}
5 changes: 5 additions & 0 deletions bus-jmh/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

open module net.neoforged.bus.jmh {
requires org.junit.jupiter.api;
requires org.apache.logging.log4j;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.benchmarks;

import net.neoforged.bus.benchmarks.compiled.BenchmarkArmsLength;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.benchmarks;

import net.neoforged.bus.api.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.benchmarks;

import net.neoforged.bus.api.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.benchmarks;

import net.neoforged.bus.api.*;
Expand Down
5 changes: 5 additions & 0 deletions bus-test/src/test/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

open module net.neoforged.bus.test {
requires org.junit.jupiter.api;
requires org.apache.logging.log4j;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.test;

import java.util.function.Supplier;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.test;

import net.neoforged.bus.test.general.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.test;

import net.neoforged.bus.api.BusBuilder;
Expand Down
5 changes: 5 additions & 0 deletions bus-test/src/test/java/net/neoforged/bus/test/Whitebox.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.test;

import java.lang.reflect.Field;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.test.general;

import net.neoforged.bus.api.BusBuilder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.test.general;

import net.neoforged.bus.api.BusBuilder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.test.general;

import net.neoforged.bus.api.BusBuilder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.test.general;

import java.util.function.Supplier;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.test.general;

import java.util.function.Supplier;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.test.general;

import java.util.concurrent.atomic.AtomicBoolean;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.test.general;

import net.neoforged.bus.api.BusBuilder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.test.general;

import java.lang.reflect.Type;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.test.general;

import net.neoforged.bus.api.BusBuilder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.test.general;

import java.util.function.Supplier;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.test.general;

import net.neoforged.bus.ListenerList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.test.general;

import java.util.concurrent.atomic.AtomicBoolean;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.test.general;

import net.neoforged.bus.api.BusBuilder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.test.general;

import net.neoforged.bus.api.*;
Expand Down
5 changes: 5 additions & 0 deletions bus-testjars/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

open module net.neoforged.bus.testjars {
requires net.neoforged.bus;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.benchmarks.compiled;

import java.util.function.Consumer;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.benchmarks.compiled;


Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.benchmarks.compiled;

import net.neoforged.bus.api.Event;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.benchmarks.compiled;

import net.neoforged.bus.api.Event;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.benchmarks.compiled;


Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.benchmarks.compiled;

import net.neoforged.bus.api.IEventBus;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.benchmarks.compiled;


Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.testjar;

import net.neoforged.bus.api.Event;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.testjar;

import net.neoforged.bus.api.SubscribeEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus.testjar;

import net.neoforged.bus.api.Event;
Expand Down
2 changes: 2 additions & 0 deletions codeformat/HEADER.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Copyright (c) NeoForged and contributors
SPDX-License-Identifier: LGPL-2.1-only
5 changes: 5 additions & 0 deletions src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

open module net.neoforged.bus {
requires org.objectweb.asm;
requires org.apache.logging.log4j;
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/net/neoforged/bus/BusBuilderImpl.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus;

import net.neoforged.bus.api.*;
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/net/neoforged/bus/ConsumerEventHandler.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) NeoForged and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/

package net.neoforged.bus;

import net.neoforged.bus.api.Event;
Expand Down
Loading

0 comments on commit 680e22f

Please sign in to comment.