Skip to content

Commit

Permalink
build: 1.0.0-dev-1
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Aug 2, 2022
1 parent ec88cdf commit b2ec61d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
22 changes: 13 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
plugins {
kotlin("jvm") version "1.6.21"
kotlin("plugin.serialization") version "1.6.21"
kotlin("jvm") version "1.7.10"
kotlin("plugin.serialization") version "1.7.10"

id("net.mamoe.mirai-console") version "2.12.0"
id("net.mamoe.maven-central-publish") version "0.7.1"
id("net.mamoe.mirai-console") version "2.12.1"
id("me.him188.maven-central-publish") version "1.0.0-dev-3"
}

group = "xyz.cssxsh"
version = "1.0.0-dev"
version = "1.0.0-dev-1"

repositories {
mavenLocal()
Expand All @@ -22,9 +22,10 @@ mavenCentralPublish {
useCentralS01()
singleDevGithubProject("cssxsh", "steam-helper")
licenseFromGitHubProject("AGPL-3.0", "master")
workingDir = System.getenv("PUBLICATION_TEMP")?.let { file(it).resolve(projectName) }
?: project.buildDir.resolve("publishing-tmp")
publication {
artifact(tasks.getByName("buildPlugin"))
artifact(tasks.getByName("buildPluginLegacy"))
}
}

Expand Down Expand Up @@ -59,14 +60,17 @@ dependencies {
}
compileOnly("net.mamoe:mirai-slf4j-bridge:1.2.0")
// test
testImplementation(kotlin("test", "1.6.21"))
testImplementation(kotlin("test"))
testImplementation("org.slf4j:slf4j-api:1.7.36")
testImplementation("net.mamoe:mirai-slf4j-bridge:1.2.0")
}

mirai {
jvmTarget = JavaVersion.VERSION_11
}

tasks {
test {
useJUnitPlatform()
}
}

}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
4 changes: 2 additions & 2 deletions src/main/kotlin/xyz/cssxsh/mirai/steam/data/SteamAuthData.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import kotlin.reflect.*
public object SteamAuthData : AutoSavePluginData("SteamAuth"), ReadWriteProperty<SteamHelper, String> {

@ValueName("login_keys")
public val keys : MutableMap<Long, String> by value()
public val keys: MutableMap<Long, String> by value()

@ValueName("bind")
public val bind : MutableMap<Long, String> by value()
public val bind: MutableMap<Long, String> by value()

override fun getValue(thisRef: SteamHelper, property: KProperty<*>): String {
return when (property.name) {
Expand Down

0 comments on commit b2ec61d

Please sign in to comment.