Skip to content

Commit 26657cf

Browse files
author
zhangyang
committed
[feat] uploade maven
1 parent e246657 commit 26657cf

File tree

7 files changed

+24
-6
lines changed

7 files changed

+24
-6
lines changed

.repo/com/kronos/plugin/basePlugin/maven-metadata.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
<version>0.1.6-SNAPSHOT</version>
1111
<version>0.1.8-SNAPSHOT</version>
1212
</versions>
13-
<lastUpdated>20200609070515</lastUpdated>
13+
<lastUpdated>20200609113833</lastUpdated>
1414
</versioning>
1515
</metadata>
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0e284eec441f733f8dacc399f8aa0d33
1+
5cdfe315fd5e740c8e769337ad86dd93
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
b31b1de6ae5f400dbed8ace8578a2f41489ad154
1+
dea791ddff4a9ff291dfe2a446ff691f33386dd0

BasePlugin/nexus.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
nexus_versionName=0.1.8
1+
nexus_versionName=0.1.9
22
nexus_artifactId=basePlugin
33
nexus_groupId=com.kronos.plugin
44
nexus_description=basePlugin

build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ buildscript {
44
ext.kotlin_version = '1.3.72'
55
repositories {
66
maven {
7-
url 'https://dl.bintray.com/leifzhang/maven/'
7+
url "file://${rootDir.absolutePath}/.repo"
88
}
99
maven {
10-
url "file://${rootDir.absolutePath}/.repo"
10+
url 'https://dl.bintray.com/leifzhang/maven/'
1111
}
1212
jcenter()
1313
google()

upload.gradle

+9
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ def nexus_description = config.getProperty('nexus_description')
1111
def nexus_fileName = config.getProperty('nexus_fileName')
1212
def nexus_type = config.getProperty('nexus_type')
1313

14+
task sourcesJar(type: Jar) {
15+
from sourceSets.main.allSource
16+
classifier = 'sources'
17+
}
18+
19+
artifacts {
20+
archives sourcesJar
21+
}
22+
1423
afterEvaluate { project ->
1524
Properties properties = new Properties()
1625
properties.load(project.rootProject.file('local.properties').newDataInputStream())

upload_bintray.gradle

+9
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ def gitUrl = nexus_url// Git仓库的url
1515
group = nexus_groupId
1616
version = nexus_versionName
1717

18+
task sourcesJar(type: Jar) {
19+
from sourceSets.main.allSource
20+
classifier = 'sources'
21+
}
22+
23+
artifacts {
24+
archives sourcesJar
25+
}
26+
1827
install {
1928
repositories.mavenInstaller {
2029
// This generates POM.xml with proper parameters

0 commit comments

Comments
 (0)