Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ on:
pull_request:

jobs:
get-gitconfig:
runs-on: windows-latest
steps:
- uses: KyoriPowered/.github/.github/actions/setup-java-env@trunk
with:
runtime_version: 17
publishing_branch_regex: "trunk"
- shell: bash
run: |
CONF=$(GIT_EDITOR=echo git config --system --edit)
echo "Config is $CONF"
cat "$CONF"
call-build:
uses: KyoriPowered/.github/.github/workflows/shared-ci.yaml@trunk
secrets: inherit
17 changes: 16 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,29 @@
buildscript {
repositories {
gradlePluginPortal()
maven {
url = "https://repo.stellardrift.ca/maven/snapshots/"
name = "stellardriftSnapshots"
mavenContent { snapshotsOnly() }
}
}
dependencies {
classpath libs.spotless
}
}

plugins {
alias libs.plugins.indra
alias libs.plugins.indra.checkstyle
alias libs.plugins.indra.publishing.sonatype
alias libs.plugins.spotless
alias libs.plugins.indra.licenser.spotless
alias libs.plugins.indra.crossdoc
alias libs.plugins.nexusPublish
id 'eclipse'
}

apply plugin: "com.diffplug.spotless"

dependencies {
compileOnlyApi libs.jetbrainsAnnotations
testImplementation platform(libs.junit.bom)
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ junit-engine = { module = "org.junit.jupiter:junit-jupiter-engine" }
junit-launcher = { module = "org.junit.platform:junit-platform-launcher" }
stylecheck = { module = "ca.stellardrift:stylecheck", version = "0.2.1" }
jansi = { module = "org.fusesource.jansi:jansi", version = "2.4.1" }
spotless = { module = "com.diffplug.spotless:spotless-plugin-gradle", version = "7.0.5-stellardrift-SNAPSHOT" }

# unused, for renovate
zCheckstyle = { module = "com.puppycrawl.tools:checkstyle", version.ref = "checkstyle" }
Expand All @@ -25,4 +26,3 @@ indra-crossdoc = { id = "net.kyori.indra.crossdoc", version.ref = "indra" }
indra-licenser-spotless = { id = "net.kyori.indra.licenser.spotless", version.ref = "indra" }
indra-publishing-sonatype = { id = "net.kyori.indra.publishing.sonatype", version.ref = "indra" }
nexusPublish = { id = "io.github.gradle-nexus.publish-plugin", version = "2.0.0-rc-1" }
spotless = "com.diffplug.spotless:6.21.0"
13 changes: 12 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
pluginManagement {
repositories {
gradlePluginPortal()
maven {
url = "https://repo.stellardrift.ca/maven/snapshots/"
name = "stellardriftSnapshots"
mavenContent { snapshotsOnly() }
}
}
}

plugins {
id "org.gradle.toolchains.foojay-resolver-convention" version "0.7.0"
}
Expand All @@ -9,4 +20,4 @@ dependencyResolutionManagement {
}
}

rootProject.name = "ansi"
rootProject.name = "ansi"