Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
TexBlock committed Sep 6, 2024
1 parent c603c64 commit 38d6881
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
14 changes: 0 additions & 14 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -99,18 +99,4 @@ subprojects {

allprojects {
apply plugin: "com.diffplug.spotless"

configurations {
moduleImplementation {
canBeResolved = true
canBeConsumed = false
}
compileClasspath.extendsFrom moduleImplementation
runtimeClasspath.extendsFrom moduleImplementation
moduleInclude {
canBeResolved = true
canBeConsumed = false
}
include.extendsFrom moduleInclude
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,16 @@
import org.gradle.api.artifacts.dsl.RepositoryHandler;
import org.jetbrains.annotations.NotNull;

import java.util.List;

public class KessokuGradlePlugin implements Plugin<Project> {
private static final List<String> NEO_GROUPS = List.of(
"net.neoforged",
"cpw.mods",
"de.oceanlabs",
"net.jodah",
"org.mcmodlauncher"
);

@Override
public void apply(@NotNull Project project) {
Expand All @@ -18,6 +27,15 @@ public void additionalRepositories(RepositoryHandler repositories) {
repositories.maven(repo -> {
repo.setName("NeoForge");
repo.setUrl("https://maven.neoforged.net/releases/");

repo.content(descriptor -> {
NEO_GROUPS.forEach(descriptor::includeGroupAndSubgroups);
});

repo.metadataSources(sources -> {
sources.mavenPom();
sources.ignoreGradleMetadataRedirection();
});
});

repositories.maven(repo -> {
Expand Down
1 change: 0 additions & 1 deletion registry/neo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ loom {
dependencies {
kessoku.moduleImpl("base", "common")
kessoku.moduleImpl("event-base", "neo")
moduleImplementation(project(":event-base-neo"))

common(project(path: ':registry-common', configuration: 'namedElements')) { transitive false }
shadowBundle(project(path: ':registry-common', configuration: 'transformProductionNeoForge'))
Expand Down

0 comments on commit 38d6881

Please sign in to comment.