Skip to content

Commit 103ce55

Browse files
committed
chore: minor changes
Signed-off-by: ale5000 <15793015+ale5000-git@users.noreply.github.com>
1 parent 811c294 commit 103ce55

File tree

3 files changed

+31
-3
lines changed

3 files changed

+31
-3
lines changed

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"gradle.enabled": false,
77
"java.autobuild.enabled": false,
88
"java.import.gradle.enabled": false,
9+
"java.import.maven.enabled": false,
910

1011
"shellcheck.enable": true,
1112
"shellcheck.enableQuickFix": true,

build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,10 @@ private void initialize() {
3232
description = String.valueOf(props.getProperty('description'))
3333
version = String.valueOf(props.getProperty('version')).toLowerCase(Locale.ENGLISH).trim()
3434
group = String.valueOf(props.getProperty('group'))
35-
ext.ourArchivesBaseName = String.valueOf(props.getProperty('id')).trim()
3635

36+
ext.ourArchivesBaseName = String.valueOf(props.getProperty('id')).trim()
37+
ext.isAlpha = version.endsWith('-alpha')
3738
//ext.isBeta = version.endsWith('-beta')
38-
//ext.isAlpha = version.endsWith('-alpha')
39-
//ext.isSnapshot = version.endsWith('-snapshot')
4039

4140
println name
4241
println 'Version: ' + version
@@ -190,7 +189,9 @@ tasks.named('wrapper').configure {
190189
publishing {
191190
publications {
192191
maven(MavenPublication) {
192+
groupId = 'com.github.micro5k'
193193
artifactId = project.ext.ourArchivesBaseName
194+
version = project.ext.isAlpha ? "${project.version}-SNAPSHOT" : project.version
194195
pom {
195196
name = project.name
196197
packaging = 'zip'

maven-client/build.gradle

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// SPDX-FileCopyrightText: NONE
2+
// SPDX-License-Identifier: CC0-1.0
3+
4+
plugins {
5+
id 'base'
6+
}
7+
8+
repositories {
9+
mavenLocal()
10+
maven { url 'https://jitpack.io' }
11+
mavenCentral()
12+
}
13+
14+
configurations {
15+
flashableZip
16+
}
17+
18+
dependencies {
19+
flashableZip('com.github.micro5k:google-sync-addon:latest.release:full@zip')
20+
}
21+
22+
tasks.register('downloadZip', Copy) {
23+
group = 'download'
24+
from configurations.flashableZip
25+
into layout.buildDirectory
26+
}

0 commit comments

Comments
 (0)