File tree Expand file tree Collapse file tree 3 files changed +31
-3
lines changed
Expand file tree Collapse file tree 3 files changed +31
-3
lines changed Original file line number Diff line number Diff line change 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 ,
Original file line number Diff line number Diff 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 {
190189publishing {
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'
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments