Skip to content

Commit

Permalink
chore: set up CI gradle build script + add licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
sylv256 committed Aug 11, 2024
1 parent 6dea9a3 commit 813fdbb
Show file tree
Hide file tree
Showing 36 changed files with 243 additions and 85 deletions.
17 changes: 16 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,28 @@ tasks.withType<License> {

// Configure the maven publication
publishing {
publications { }
publications {
create<MavenPublication>("maven") {
groupId = mavenGroup
artifactId = modId
version = modVersion

from(components["java"])
}
}

// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
// Add repositories to publish to here.
// Notice: This block does NOT have the same function as the block in the top level.
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
maven {
url = uri("https://maven.muonmc.org/releases")
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
}
}
7 changes: 7 additions & 0 deletions src/main/java/gay/sylv/weird_wares/api/GlintData.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2024 Vulpixel
* <p>
* For more information, read the LICENSE file in the project root.
* You should have received a copy of the Lambda License with The Software.
* If not, visit {@link https://sylv.gay/licenses/lambda}.
*/
package gay.sylv.weird_wares.api;

import gay.sylv.weird_wares.impl.DataAttachments;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/gay/sylv/weird_wares/impl/Components.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2024 Vulpixel
* <p>
* For more information, read the LICENSE file in the project root.
* You should have received a copy of the Lambda License with The Software.
* If not, visit {@link https://sylv.gay/licenses/lambda}.
*/
package gay.sylv.weird_wares.impl;

import gay.sylv.weird_wares.impl.util.Initializable;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/gay/sylv/weird_wares/impl/DataAttachments.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2024 Vulpixel
* <p>
* For more information, read the LICENSE file in the project root.
* You should have received a copy of the Lambda License with The Software.
* If not, visit {@link https://sylv.gay/licenses/lambda}.
*/
package gay.sylv.weird_wares.impl;

import gay.sylv.weird_wares.impl.util.Codecs;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/gay/sylv/weird_wares/impl/LootTables.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2024 Vulpixel
* <p>
* For more information, read the LICENSE file in the project root.
* You should have received a copy of the Lambda License with The Software.
* If not, visit {@link https://sylv.gay/licenses/lambda}.
*/
package gay.sylv.weird_wares.impl;

import gay.sylv.weird_wares.impl.util.Initializable;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/gay/sylv/weird_wares/impl/Main.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2024 Vulpixel
* <p>
* For more information, read the LICENSE file in the project root.
* You should have received a copy of the Lambda License with The Software.
* If not, visit {@link https://sylv.gay/licenses/lambda}.
*/
package gay.sylv.weird_wares.impl;

import gay.sylv.weird_wares.impl.block.Blocks;
Expand Down
18 changes: 4 additions & 14 deletions src/main/java/gay/sylv/weird_wares/impl/block/BlockHolder.java
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
/**
* World In a Jar
* Copyright (C) 2024 VulpixelMC
* Copyright (c) 2024 Vulpixel
* <p>
* This program 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, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program 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.
* <p>
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
* For more information, read the LICENSE file in the project root.
* You should have received a copy of the Lambda License with The Software.
* If not, visit {@link https://sylv.gay/licenses/lambda}.
*/
package gay.sylv.weird_wares.impl.block;

Expand Down
18 changes: 4 additions & 14 deletions src/main/java/gay/sylv/weird_wares/impl/block/Blocks.java
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
/**
* World In a Jar
* Copyright (C) 2024 VulpixelMC
* Copyright (c) 2024 Vulpixel
* <p>
* This program 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, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program 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.
* <p>
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
* For more information, read the LICENSE file in the project root.
* You should have received a copy of the Lambda License with The Software.
* If not, visit {@link https://sylv.gay/licenses/lambda}.
*/
package gay.sylv.weird_wares.impl.block;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2024 Vulpixel
* <p>
* For more information, read the LICENSE file in the project root.
* You should have received a copy of the Lambda License with The Software.
* If not, visit {@link https://sylv.gay/licenses/lambda}.
*/
package gay.sylv.weird_wares.impl.block;

import com.mojang.serialization.MapCodec;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
/**
* World In a Jar
* Copyright (C) 2024 VulpixelMC
* Copyright (c) 2024 Vulpixel
* <p>
* This program 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, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program 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.
* <p>
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
* For more information, read the LICENSE file in the project root.
* You should have received a copy of the Lambda License with The Software.
* If not, visit {@link https://sylv.gay/licenses/lambda}.
*/
package gay.sylv.weird_wares.impl.block.entity.type;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2024 Vulpixel
* <p>
* For more information, read the LICENSE file in the project root.
* You should have received a copy of the Lambda License with The Software.
* If not, visit {@link https://sylv.gay/licenses/lambda}.
*/
package gay.sylv.weird_wares.impl.client;

import gay.sylv.weird_wares.impl.DataAttachments;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2024 Vulpixel
* <p>
* For more information, read the LICENSE file in the project root.
* You should have received a copy of the Lambda License with The Software.
* If not, visit {@link https://sylv.gay/licenses/lambda}.
*/
package gay.sylv.weird_wares.impl.client.render;

import com.mojang.blaze3d.shaders.Uniform;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2024 Vulpixel
* <p>
* For more information, read the LICENSE file in the project root.
* You should have received a copy of the Lambda License with The Software.
* If not, visit {@link https://sylv.gay/licenses/lambda}.
*/
package gay.sylv.weird_wares.impl.compat.client;

import gay.sylv.weird_wares.impl.duck.Accessor_LevelRenderer;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2024 Vulpixel
* <p>
* For more information, read the LICENSE file in the project root.
* You should have received a copy of the Lambda License with The Software.
* If not, visit {@link https://sylv.gay/licenses/lambda}.
*/
package gay.sylv.weird_wares.impl.datagen;

import gay.sylv.weird_wares.impl.block.Blocks;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2024 Vulpixel
* <p>
* For more information, read the LICENSE file in the project root.
* You should have received a copy of the Lambda License with The Software.
* If not, visit {@link https://sylv.gay/licenses/lambda}.
*/
package gay.sylv.weird_wares.impl.duck;

@org.jetbrains.annotations.ApiStatus.Internal
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2024 Vulpixel
* <p>
* For more information, read the LICENSE file in the project root.
* You should have received a copy of the Lambda License with The Software.
* If not, visit {@link https://sylv.gay/licenses/lambda}.
*/
package gay.sylv.weird_wares.impl.duck;

import it.unimi.dsi.fastutil.objects.ObjectArrayList;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/gay/sylv/weird_wares/impl/entity/Entities.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2024 Vulpixel
* <p>
* For more information, read the LICENSE file in the project root.
* You should have received a copy of the Lambda License with The Software.
* If not, visit {@link https://sylv.gay/licenses/lambda}.
*/
package gay.sylv.weird_wares.impl.entity;

import gay.sylv.weird_wares.impl.util.Initializable;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/gay/sylv/weird_wares/impl/item/GlitterItem.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2024 Vulpixel
* <p>
* For more information, read the LICENSE file in the project root.
* You should have received a copy of the Lambda License with The Software.
* If not, visit {@link https://sylv.gay/licenses/lambda}.
*/
package gay.sylv.weird_wares.impl.item;

import gay.sylv.weird_wares.impl.DataAttachments;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/gay/sylv/weird_wares/impl/item/Items.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2024 Vulpixel
* <p>
* For more information, read the LICENSE file in the project root.
* You should have received a copy of the Lambda License with The Software.
* If not, visit {@link https://sylv.gay/licenses/lambda}.
*/
package gay.sylv.weird_wares.impl.item;

import gay.sylv.weird_wares.impl.util.Initializable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2024 Vulpixel
* <p>
* For more information, read the LICENSE file in the project root.
* You should have received a copy of the Lambda License with The Software.
* If not, visit {@link https://sylv.gay/licenses/lambda}.
*/
package gay.sylv.weird_wares.impl.item.group;

import net.minecraft.resources.ResourceKey;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2024 Vulpixel
* <p>
* For more information, read the LICENSE file in the project root.
* You should have received a copy of the Lambda License with The Software.
* If not, visit {@link https://sylv.gay/licenses/lambda}.
*/
package gay.sylv.weird_wares.impl.item.group;

import gay.sylv.weird_wares.impl.block.Blocks;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2024 Vulpixel
* <p>
* For more information, read the LICENSE file in the project root.
* You should have received a copy of the Lambda License with The Software.
* If not, visit {@link https://sylv.gay/licenses/lambda}.
*/
package gay.sylv.weird_wares.impl.network;

import gay.sylv.weird_wares.impl.network.client.RequestGlintSyncPayload;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2024 Vulpixel
* <p>
* For more information, read the LICENSE file in the project root.
* You should have received a copy of the Lambda License with The Software.
* If not, visit {@link https://sylv.gay/licenses/lambda}.
*/
package gay.sylv.weird_wares.impl.network.client;

import gay.sylv.weird_wares.impl.DataAttachments;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2024 Vulpixel
* <p>
* For more information, read the LICENSE file in the project root.
* You should have received a copy of the Lambda License with The Software.
* If not, visit {@link https://sylv.gay/licenses/lambda}.
*/
package gay.sylv.weird_wares.impl.network.client;

import gay.sylv.weird_wares.impl.network.Networking;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2024 Vulpixel
* <p>
* For more information, read the LICENSE file in the project root.
* You should have received a copy of the Lambda License with The Software.
* If not, visit {@link https://sylv.gay/licenses/lambda}.
*/
package gay.sylv.weird_wares.impl.network.server;

import gay.sylv.weird_wares.impl.DataAttachments;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2024 Vulpixel
* <p>
* For more information, read the LICENSE file in the project root.
* You should have received a copy of the Lambda License with The Software.
* If not, visit {@link https://sylv.gay/licenses/lambda}.
*/
package gay.sylv.weird_wares.impl.network.server;

import gay.sylv.weird_wares.impl.network.Networking;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/gay/sylv/weird_wares/impl/util/BlockFlags.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2024 Vulpixel
* <p>
* For more information, read the LICENSE file in the project root.
* You should have received a copy of the Lambda License with The Software.
* If not, visit {@link https://sylv.gay/licenses/lambda}.
*/
package gay.sylv.weird_wares.impl.util;

@org.jetbrains.annotations.ApiStatus.Internal
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/gay/sylv/weird_wares/impl/util/Codecs.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2024 Vulpixel
* <p>
* For more information, read the LICENSE file in the project root.
* You should have received a copy of the Lambda License with The Software.
* If not, visit {@link https://sylv.gay/licenses/lambda}.
*/
package gay.sylv.weird_wares.impl.util;

import com.mojang.serialization.Codec;
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/gay/sylv/weird_wares/impl/util/Constants.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2024 Vulpixel
* <p>
* For more information, read the LICENSE file in the project root.
* You should have received a copy of the Lambda License with The Software.
* If not, visit {@link https://sylv.gay/licenses/lambda}.
*/
package gay.sylv.weird_wares.impl.util;

import net.fabricmc.api.EnvType;
Expand Down
Loading

0 comments on commit 813fdbb

Please sign in to comment.