Skip to content

Commit 1b100a3

Browse files
committed
initial commit
0 parents  commit 1b100a3

33 files changed

+1163
-0
lines changed

.github/workflows/build.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build
2+
on:
3+
pull_request:
4+
types: [opened, synchronize]
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-20.04
9+
timeout-minutes: 20
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- uses: actions/setup-java@v3
14+
with:
15+
java-version: 17
16+
distribution: temurin
17+
18+
- name: Validate Gradle wrapper
19+
uses: gradle/wrapper-validation-action@v1
20+
21+
- name: Build
22+
uses: gradle/gradle-build-action@v2
23+
with:
24+
arguments: build

.github/workflows/release.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Release
2+
on:
3+
release:
4+
types: [created]
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-20.04
9+
timeout-minutes: 20
10+
permissions:
11+
contents: write
12+
packages: write
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- uses: actions/setup-java@v3
17+
with:
18+
java-version: 17
19+
distribution: temurin
20+
21+
- name: Validate Gradle wrapper
22+
uses: gradle/wrapper-validation-action@v1
23+
24+
- name: Update mod version
25+
uses: christian-draeger/[email protected]
26+
with:
27+
path: "gradle.properties"
28+
property: "mod_version"
29+
value: ${{ github.event.release.tag_name }}
30+
31+
- name: Build and upload
32+
uses: gradle/gradle-build-action@v2
33+
with:
34+
arguments: build curseforge modrinth publish
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
38+
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
39+
CHANGELOG: ${{ github.event.release.body }}
40+
CI: true
41+
42+
- name: Upload to github releases
43+
if: ${{ github.event_name == 'release' }}
44+
uses: svenstaro/upload-release-action@v2
45+
with:
46+
file: build/libs/atheneum_connector-${{ github.event.release.tag_name }}.jar

.github/workflows/sonar.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Analyze
2+
on:
3+
push:
4+
branches: ["[0-9]+.[0-9]+.x"]
5+
6+
jobs:
7+
build:
8+
name: Analyze
9+
runs-on: ubuntu-latest
10+
timeout-minutes: 40
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
17+
- uses: actions/setup-java@v3
18+
with:
19+
java-version: 17
20+
distribution: temurin
21+
22+
- name: Validate Gradle wrapper
23+
uses: gradle/wrapper-validation-action@v1
24+
25+
- name: Cache SonarQube packages
26+
uses: actions/cache@v2
27+
with:
28+
path: ~/.sonar/cache
29+
key: ${{ runner.os }}-sonar
30+
restore-keys: ${{ runner.os }}-sonar
31+
32+
- name: Build and upload
33+
uses: gradle/gradle-build-action@v2
34+
with:
35+
arguments: build sonar
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
39+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

.gitignore

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# eclipse
2+
bin
3+
*.launch
4+
.settings
5+
.metadata
6+
.classpath
7+
.project
8+
9+
# idea
10+
out
11+
*.ipr
12+
*.iws
13+
*.iml
14+
.idea
15+
16+
# gradle
17+
build
18+
.gradle
19+
20+
# other
21+
eclipse
22+
run
23+
24+
# Files from Forge MDK
25+
forge*changelog.txt
26+
27+
**.env

LICENSE.txt

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
Copyright (c) 2020 possible_triangle. All Rights Reserved.
2+
3+
Permissions are hereby granted below to any person having a copy of
4+
this software and/or its associated files:
5+
6+
Usage - You may use this software for private and public use. You may use this software as a library
7+
or integrate it with your code with the predicate being it must be downloaded from our sources and a soft or hard dependency.
8+
Copying - You may copy this software for private use or to contribute to this software.
9+
Modification - You may modify this software for private use or to contribute to this software.
10+
Publishing - You may not publish copies of this software.
11+
Distributing - You may not distribute this software.
12+
Sublicensing - You may not sublicense this software.
13+
Selling - You may not sell this software.
14+
15+
Modpack Clarification:
16+
Permission is granted for Modpacks to include this software as long
17+
as the copy of this software in the pack is an unmodified public copy
18+
from our public sources and is marked as included in the Modpack.
19+
20+
Definition of 'Our Sources' in this license:
21+
Our Sources in this license means a copy
22+
of this software or its associated files that come
23+
directly from the owners of this software, an example
24+
are the files uploaded by us on our Curse Page.
25+
26+
The above copyright notice and these permission notices shall be included in all
27+
copies or substantial portions of the Software.
28+
29+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
30+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
32+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
33+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
34+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
35+
SOFTWARE.

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Atheneum Connector

build.gradle.kts

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
import com.expediagroup.graphql.plugin.gradle.config.GraphQLSerializer
2+
import com.expediagroup.graphql.plugin.gradle.graphql
3+
4+
val mc_version: String by extra
5+
val rabbitmq_version: String by extra
6+
val travelers_titles_version: String by extra
7+
val yungs_api_version: String by extra
8+
val graphql_client_version: String by extra
9+
val kotlin_forge_version: String by extra
10+
11+
plugins {
12+
idea
13+
id("com.possible-triangle.gradle") version ("0.1.5")
14+
id("com.expediagroup.graphql") version ("8.1.0")
15+
}
16+
17+
withKotlin()
18+
19+
forge {
20+
includesLibrary("com.rabbitmq:amqp-client:$rabbitmq_version")
21+
includesLibrary("com.expediagroup:graphql-kotlin-ktor-client:$graphql_client_version")
22+
23+
kotlinForgeVersion = null
24+
}
25+
26+
repositories {
27+
modrinthMaven()
28+
}
29+
30+
// required because of duplicate package export
31+
configurations.named("minecraftLibrary") {
32+
exclude(group = "org.jetbrains", module = "annotations")
33+
}
34+
35+
dependencies {
36+
modImplementation("maven.modrinth:travelers-titles:${travelers_titles_version}")
37+
modRuntimeOnly("maven.modrinth:yungs-api:${yungs_api_version}")
38+
39+
// required because of duplicate package export by thedarkcolour:kotlinforforge:all
40+
implementation("thedarkcolour:kffmod:${kotlin_forge_version}")
41+
implementation("thedarkcolour:kfflang:${kotlin_forge_version}")
42+
implementation("thedarkcolour:kfflib:${kotlin_forge_version}")
43+
44+
//add("minecraftLibrary", "org.jetbrains.kotlin:kotlin-reflect:${kotlin.coreLibrariesVersion}")
45+
46+
/*
47+
"minecraftLibrary"("com.expediagroup:graphql-kotlin-ktor-client:$graphql_client_version") {
48+
exclude(group = "org.jetbrains.kotlinx")
49+
exclude(group = "org.jetbrains.kotlin", module = "kotlin-stdlib")
50+
exclude(group = "org.jetbrains")
51+
}
52+
53+
"jarJar"("com.expediagroup:graphql-kotlin-ktor-client:$graphql_client_version") {
54+
jarJar.pin(this, "[${graphql_client_version},)")
55+
}
56+
*/
57+
}
58+
59+
graphql {
60+
client {
61+
endpoint = "http://localhost:8080/api/graphql"
62+
packageName = "com.possible_triangle.atheneum_connector.generated"
63+
serializer = GraphQLSerializer.KOTLINX
64+
}
65+
}
66+
67+
enablePublishing {
68+
githubPackages()
69+
}
70+
71+
uploadToModrinth {
72+
syncBodyFromReadme()
73+
}
74+
75+
enableSonarQube()

gradle.properties

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
kotlin.code.style=official
2+
org.gradle.jvmargs=-Xmx2G
3+
org.gradle.daemon=false
4+
5+
mc_version=1.20.1
6+
forge_version=47.1.3
7+
8+
mod_id=atheneum_connector
9+
mod_version=0.0.0-dev
10+
release_type=release
11+
mod_name=Atheneum Connector
12+
mod_author=possible_triangle
13+
maven_group=com.possible-triangle
14+
15+
kotlin_forge_version=4.11.0
16+
rabbitmq_version=5.22.0
17+
travelers_titles_version=oUSK4sOQ
18+
yungs_api_version=PJOYAmAs
19+
graphql_client_version=8.1.0
20+
21+
repository=voidshake/atheneumconnector
22+
modrinth_project_id=WIPHNZss

gradle/wrapper/gradle-wrapper.jar

60.6 KB
Binary file not shown.
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
4+
networkTimeout=10000
5+
zipStoreBase=GRADLE_USER_HOME
6+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)