File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- buildscript {
2- ext {
3- revision = ' 0.2.4'
4- }
1+ plugins {
2+ id ' maven-publish'
53}
64
5+ group ' com.tcoded'
6+
77allprojects {
88 apply plugin : ' java'
99
10- version = ' 0.4.2 '
10+ version = ' 0.4.3 '
1111
1212 repositories {
1313
@@ -47,16 +47,15 @@ allprojects {
4747 }
4848}
4949
50- group ' com.tcoded '
51-
52- def baseName
50+ tasks . assemble {
51+ dependsOn clean
52+ }
5353
54- subprojects. each { subproject -> evaluationDependsOn(subproject. path)}
54+ subprojects. each { subproject -> evaluationDependsOn(subproject. path) }
5555tasks. register(' allJar' , Jar ) {
5656 dependsOn ' compileJava'
5757 dependsOn ' jar'
5858 dependsOn subprojects. tasks[' build' ]
59- baseName = ' allJar'
6059 subprojects. each { subproject ->
6160 from subproject. configurations. archives. allArtifacts. files. collect {
6261 zipTree(it)
@@ -66,4 +65,16 @@ tasks.register('allJar', Jar) {
6665
6766artifacts {
6867 archives allJar
68+ }
69+
70+ publishing {
71+ publications {
72+ mavenJava(MavenPublication ) {
73+ from components. java
74+ }
75+ }
76+ }
77+
78+ generateMetadataFileForMavenJavaPublication {
79+ dependsOn allJar
6980}
You can’t perform that action at this time.
0 commit comments