File tree Expand file tree Collapse file tree 3 files changed +35
-27
lines changed
Expand file tree Collapse file tree 3 files changed +35
-27
lines changed Original file line number Diff line number Diff line change 1+ allprojects {
2+ version = " 1.0.0"
3+ group = ' com.masil.commons'
4+
5+ repositories {
6+ mavenCentral()
7+ maven { url ' https://jitpack.io' }
8+ }
9+ }
10+
11+ subprojects {
12+ apply plugin : ' java'
13+ apply plugin : ' maven-publish'
14+
15+ sourceCompatibility = 1.8
16+ targetCompatibility = 1.8
17+
18+ java {
19+ withSourcesJar()
20+ withJavadocJar()
21+ }
22+
23+ publishing {
24+ publications {
25+ maven(MavenPublication ) {
26+ groupId project. group
27+ artifactId project. name
28+ version project. version
29+ from components. java
30+ }
31+ }
32+ }
33+ }
Original file line number Diff line number Diff line change 11plugins {
22 id ' java-library'
3- // id 'maven-publish'
3+ id ' maven-publish'
44}
55
6- repositories {
7- mavenCentral()
8- }
9-
10- version = ' 1.0.0'
11- group = ' com.masil.commons'
12-
13- tasks. withType(JavaCompile ) {
14- sourceCompatibility = " 1.8"
15- targetCompatibility = " 1.8"
16- options. encoding = " UTF-8"
17- }
186
197dependencies {
208 implementation(project(" :clocks" ))
Original file line number Diff line number Diff line change 11plugins {
22 id ' java-library'
3- // id 'maven-publish'
4- }
5-
6- repositories {
7- mavenCentral()
8- }
9-
10- version = ' 1.0.0'
11- group = ' com.masil.commons'
12-
13- tasks. withType(JavaCompile ) {
14- sourceCompatibility = " 1.8"
15- targetCompatibility = " 1.8"
16- options. encoding = " UTF-8"
3+ id ' maven-publish'
174}
185
196dependencies {
You can’t perform that action at this time.
0 commit comments