Skip to content

Commit

Permalink
Remove ci_version
Browse files Browse the repository at this point in the history
  • Loading branch information
Mgazul committed Jan 16, 2025
1 parent e5c40c6 commit 5177fc8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 20 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Build And Publish to Modrinth
name: Build

on : [push, pull_request]

env:
MINECRAFT_VERSION: 1.21.1
VERSION: 1.21.1
MODRINTH_TOKEN: ${{ secrets.PUBLISH_MODRINTH_TOKEN }}
RELEASE_NAME: banner-1.21.1

jobs:
Expand All @@ -18,7 +17,7 @@ jobs:

steps:
- name: Cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
Expand All @@ -41,5 +40,5 @@ jobs:
- name: Upload API Lib
uses: actions/upload-artifact@v4
with:
name: Banner API
path: ./banner-api/build/devlibs/*.jar
name: Banner launcher
path: ./build/libs/*.jar
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

### The Bukkit/Spigot/Paper API implementation for Fabric
### The project is no longer a Fabric mod, but a standalone program
[![](https://img.shields.io/jenkins/build?jobUrl=https%3A%2F%2Fci.codemc.io%2Fjob%2FMohistMC%2Fjob%2FBanner-1.21.1&label=Jenkins&logo=jenkins&logoColor=%23ffffff)](https://ci.codemc.io/job/MohistMC/job/Banner-1.21.1)
[![](https://img.shields.io/github/stars/MohistMC/Banner.svg?label=Stars&logo=github)](https://github.com/MohistMC/Banner/stargazers)
[![](https://img.shields.io/badge/JDK-21.0.3-brightgreen.svg?colorB=469C00&logo=java)](https://www.azul.com/downloads/?version=java-21-lts#zulu)
[![](https://img.shields.io/badge/Gradle-8.11.1-brightgreen.svg?colorB=469C00&logo=gradle)](https://docs.gradle.org/8.11.1/release-notes.html)
Expand Down Expand Up @@ -66,7 +65,6 @@ so don't worried about the plugin files will be changed to unsafe
- [**StackDeobfuscator**](https://github.com/booky10/StackDeobfuscator) - auto deobfuscate logger crash

## Special Thanks To:
<a href="https://ci.codemc.io/"><img src="https://i.loli.net/2020/03/11/YNicj3PLkU5BZJT.png" width="172"></a>

<a href="https://www.bisecthosting.com/mohistmc"><img src="https://www.bisecthosting.com/partners/custom-banners/118608b8-6e45-4301-b244-41934cdac6d1.png"></a>

Expand Down
16 changes: 3 additions & 13 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
id 'maven-publish'
}

version = project.minecraft_version + "-" + ci_version()
version = project.minecraft_version
group = project.maven_group

base {
Expand Down Expand Up @@ -159,7 +159,7 @@ def moduleDependencies(Project project, List<String> depNames) {
}

def getSubprojectVersion(project) {
return project.minecraft_version + "-" + ci_version()
return project.minecraft_version
}

dependencies {
Expand All @@ -180,20 +180,10 @@ jar {
'Main-Class': 'com.mohistmc.banner.BannerLauncher',
'Specification-Title' : 'Banner',
'Specification-Vendor' : 'MohistMC',
'Specification-Version' : ci_version(),
'Specification-Version' : version,
'Implementation-Title' : 'Banner',
'Implementation-Version': version,
'Implementation-Vendor' : 'MohistMC'
)
}
}

import groovy.json.JsonSlurper
static String ci_version() {
try {
def data = new JsonSlurper().parseText(new URL("https://ci.codemc.io/job/MohistMC/job/Banner-1.21.1/api/json").getText("UTF-8"))
return data.builds["number"][0]
} catch (Exception ignored) {
return "1.21.1"
}
}

0 comments on commit 5177fc8

Please sign in to comment.