Skip to content

Commit be95ed7

Browse files
committed
automate versioning
1 parent 5ebbe7f commit be95ed7

File tree

5 files changed

+15
-6
lines changed

5 files changed

+15
-6
lines changed

build.gradle

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,20 @@ repositories {
77
mavenCentral()
88
}
99

10-
version = '3.36.0.3'
1110
group = 'pl.kosma' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
1211
archivesBaseName = 'sqlite-jdbc'
12+
version = "${project.sqlite_version}+${project.date_version}"
1313

1414
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
1515

1616
dependencies {
17-
implementation 'org.xerial:sqlite-jdbc:3.36.0.3'
17+
implementation "org.xerial:sqlite-jdbc:${project.sqlite_version}"
18+
}
19+
20+
processResources {
21+
filesMatching(['fabric.mod.json', 'mcmod.info', 'META-INF/mods.toml']) {
22+
expand "version": project.version
23+
}
1824
}
1925

2026
jar {

gradle.properties

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Sets default memory used for gradle commands. Can be overridden by user or command line properties.
22
# This is required to provide enough memory for the Minecraft decompilation process.
33
org.gradle.jvmargs=-Xmx3G
4-
org.gradle.daemon=false
4+
org.gradle.daemon=false
5+
6+
sqlite_version=3.36.0.3
7+
date_version=20211227

src/main/resources/META-INF/mods.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ license="Apache"
55

66
[[mods]]
77
modId="sqlite_jdbc"
8-
version="3.36.0.3"
8+
version="${version}"
99
displayName="SQLite JDBC"
1010
displayURL="https://www.curseforge.com/minecraft/mc-mods/sqlite-jdbc"
1111
logoFile="icon.png"

src/main/resources/fabric.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"schemaVersion": 1,
33
"id": "sqlite-jdbc",
4-
"version": "3.36.0.3",
4+
"version": "${version}",
55
"name": "SQLite JDBC",
66
"description": "SQLite JDBC Driver for Fabric and Forge",
77
"authors": [

src/main/resources/mcmod.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"modid": "sqlite_jdbc",
44
"name": "SQLite JDBC",
55
"description": "SQLite JDBC Driver for Fabric and Forge",
6-
"version": "3.36.0.3",
6+
"version": "${version}",
77
"mcversion": "",
88
"url": "https://www.curseforge.com/minecraft/mc-mods/sqlite-jdbc",
99
"authorList": ["xerial", "Kosmolot"],

0 commit comments

Comments
 (0)