-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clean up build.gradle files, move constants to buildSrc
- Loading branch information
1 parent
8a9a4f2
commit 291c2e6
Showing
5 changed files
with
46 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +0,0 @@ | ||
dependencies { | ||
// Config API, moved to the global build.gradle | ||
// implementation("com.typesafe:config:1.4.0") | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
plugins { | ||
`kotlin-dsl` | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation("net.lingala.zip4j:zip4j:2.9.0") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import java.io.BufferedReader | ||
|
||
/* | ||
* Copyright (C) Contributors to the Suwayomi project | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */ | ||
|
||
const val kotlinVersion = "1.5.21" | ||
|
||
const val MainClass = "suwayomi.tachidesk.MainKt" | ||
|
||
// should be bumped with each stable release | ||
val tachideskVersion = System.getenv("ProductVersion") ?: "v0.4.5" | ||
|
||
val webUIRevisionTag = System.getenv("WebUIRevision") ?: "r24" | ||
|
||
// counts commit count on master | ||
val tachideskRevision = runCatching { | ||
System.getenv("ProductRevision") ?: Runtime | ||
.getRuntime() | ||
.exec("git rev-list HEAD --count") | ||
.let { process -> | ||
process.waitFor() | ||
val output = process.inputStream.use { | ||
it.bufferedReader().use(BufferedReader::readText) | ||
} | ||
process.destroy() | ||
"r" + output.trim() | ||
} | ||
}.getOrDefault("r0") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters