Skip to content

Commit

Permalink
Added new maven
Browse files Browse the repository at this point in the history
  • Loading branch information
LatvianModder committed Aug 24, 2023
1 parent b07ba3c commit aa54c2e
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 10 deletions.
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
- name: Build and Publish with Gradle
uses: gradle/gradle-build-action@v2
env:
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}
FTB_MAVEN_TOKEN: ${{ secrets.FTB_MAVEN_TOKEN }}
SAPS_TOKEN: ${{ secrets.SAPS_TOKEN }}
with:
Expand Down
10 changes: 1 addition & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@ allprojects {
url "https://maven.architectury.dev/"
}

maven {
url "https://maven.saps.dev/minecraft"
content {
includeGroup "dev.latvian.mods"
includeGroup "dev.ftb.mods"
}
}

mavenLocal()
}
}
Expand All @@ -42,7 +34,7 @@ subprojects {
apply plugin: 'architectury-plugin'
apply plugin: "io.github.juuxel.loom-quiltflower"
apply plugin: "maven-publish"
apply from: "https://files.latmod.com/public/markdown-git-changelog.gradle"
apply from: "https://files.latvian.dev/public/markdown-git-changelog.gradle"

version = rootProject.version
group = rootProject.group
Expand Down
10 changes: 10 additions & 0 deletions common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ publishing {
}

repositories {
if (ENV.MAVEN_TOKEN) {
maven {
url "https://maven.latvian.dev/releases"
credentials {
username = "lat"
password = "${ENV.MAVEN_TOKEN}"
}
}
}

if (ENV.SAPS_TOKEN) {
maven {
url "https://maven.saps.dev/minecraft"
Expand Down
10 changes: 10 additions & 0 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,16 @@ publishing {
}

repositories {
if (ENV.MAVEN_TOKEN) {
maven {
url "https://maven.latvian.dev/releases"
credentials {
username = "lat"
password = "${ENV.MAVEN_TOKEN}"
}
}
}

if (ENV.SAPS_TOKEN) {
maven {
url "https://maven.saps.dev/minecraft"
Expand Down
10 changes: 10 additions & 0 deletions forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,16 @@ publishing {
}

repositories {
if (ENV.MAVEN_TOKEN) {
maven {
url "https://maven.latvian.dev/releases"
credentials {
username = "lat"
password = "${ENV.MAVEN_TOKEN}"
}
}
}

if (ENV.SAPS_TOKEN) {
maven {
url "https://maven.saps.dev/minecraft"
Expand Down

0 comments on commit aa54c2e

Please sign in to comment.