Skip to content

Commit f8569df

Browse files
authored
Extract the common parts from the build files (#270)
1 parent a52fee9 commit f8569df

File tree

9 files changed

+24
-118
lines changed

9 files changed

+24
-118
lines changed

build.gradle

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,27 @@ subprojects {
4141
mavenCentral()
4242
maven { url 'https://jitpack.io' }
4343
}
44-
}
44+
}
45+
46+
configure([
47+
project(':utbot-api'),
48+
project(':utbot-core'),
49+
project(':utbot-framework'),
50+
project(':utbot-framework-api'),
51+
project(':utbot-fuzzers'),
52+
project(':utbot-instrumentation'),
53+
project(':utbot-summary')
54+
]) {
55+
publishing {
56+
repositories {
57+
maven {
58+
name = "GitHubPackages"
59+
url = "https://maven.pkg.github.com/UnitTestBot/UTBotJava"
60+
credentials {
61+
username = System.getenv("GITHUB_ACTOR")
62+
password = System.getenv("GITHUB_TOKEN")
63+
}
64+
}
65+
}
66+
}
67+
}

utbot-api/build.gradle

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1 @@
1-
plugins {
2-
id 'maven-publish'
3-
}
4-
51
apply from: "${parent.projectDir}/gradle/include/jvm-project.gradle"
6-
7-
publishing {
8-
repositories {
9-
maven {
10-
name = "GitHubPackages"
11-
url = "https://maven.pkg.github.com/UnitTestBot/UTBotJava"
12-
credentials {
13-
username = System.getenv("GITHUB_ACTOR")
14-
password = System.getenv("GITHUB_TOKEN")
15-
}
16-
}
17-
}
18-
}

utbot-core/build.gradle

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,6 @@
1-
plugins {
2-
id 'maven-publish'
3-
}
4-
51
apply from: "${parent.projectDir}/gradle/include/jvm-project.gradle"
62

73
dependencies {
84
implementation group: 'io.github.microutils', name: 'kotlin-logging', version: kotlin_logging_version
95
implementation group: 'net.java.dev.jna', name: 'jna-platform', version: '5.5.0'
106
}
11-
12-
publishing {
13-
repositories {
14-
maven {
15-
name = "GitHubPackages"
16-
url = "https://maven.pkg.github.com/UnitTestBot/UTBotJava"
17-
credentials {
18-
username = System.getenv("GITHUB_ACTOR")
19-
password = System.getenv("GITHUB_TOKEN")
20-
}
21-
}
22-
}
23-
}

utbot-framework-api/build.gradle

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
plugins {
2-
id 'maven-publish'
3-
}
4-
51
apply from: "${parent.projectDir}/gradle/include/jvm-project.gradle"
62

7-
83
dependencies {
94
api project(':utbot-core')
105
api project(':utbot-api')
@@ -14,16 +9,3 @@ dependencies {
149
implementation group: 'org.apache.commons', name: 'commons-lang3', version: commons_lang_version
1510
implementation group: 'io.github.microutils', name: 'kotlin-logging', version: kotlin_logging_version
1611
}
17-
18-
publishing {
19-
repositories {
20-
maven {
21-
name = "GitHubPackages"
22-
url = "https://maven.pkg.github.com/UnitTestBot/UTBotJava"
23-
credentials {
24-
username = System.getenv("GITHUB_ACTOR")
25-
password = System.getenv("GITHUB_TOKEN")
26-
}
27-
}
28-
}
29-
}

utbot-framework/build.gradle

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
plugins {
2-
id 'maven-publish'
3-
}
4-
51
apply from: "${parent.projectDir}/gradle/include/jvm-project.gradle"
62

73
repositories {
@@ -79,16 +75,3 @@ test {
7975
jvmArgs '-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=9009'
8076
}
8177
}
82-
83-
publishing {
84-
repositories {
85-
maven {
86-
name = "GitHubPackages"
87-
url = "https://maven.pkg.github.com/UnitTestBot/UTBotJava"
88-
credentials {
89-
username = System.getenv("GITHUB_ACTOR")
90-
password = System.getenv("GITHUB_TOKEN")
91-
}
92-
}
93-
}
94-
}

utbot-fuzzers/build.gradle

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
plugins {
2-
id 'maven-publish'
3-
}
4-
51
apply from: "${parent.projectDir}/gradle/include/jvm-project.gradle"
62

73
dependencies {
@@ -13,16 +9,3 @@ dependencies {
139
compileJava {
1410
options.compilerArgs = []
1511
}
16-
17-
publishing {
18-
repositories {
19-
maven {
20-
name = "GitHubPackages"
21-
url = "https://maven.pkg.github.com/UnitTestBot/UTBotJava"
22-
credentials {
23-
username = System.getenv("GITHUB_ACTOR")
24-
password = System.getenv("GITHUB_TOKEN")
25-
}
26-
}
27-
}
28-
}

utbot-instrumentation/build.gradle

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
plugins {
2-
id 'maven-publish'
3-
}
4-
51
apply from: "${parent.projectDir}/gradle/include/jvm-project.gradle"
62

73
dependencies {
@@ -37,16 +33,3 @@ configurations {
3733
artifacts {
3834
instrumentationArchive jar
3935
}
40-
41-
publishing {
42-
repositories {
43-
maven {
44-
name = "GitHubPackages"
45-
url = "https://maven.pkg.github.com/UnitTestBot/UTBotJava"
46-
credentials {
47-
username = System.getenv("GITHUB_ACTOR")
48-
password = System.getenv("GITHUB_TOKEN")
49-
}
50-
}
51-
}
52-
}

utbot-maven/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
plugins {
22
id 'maven'
3-
id 'maven-publish'
43
}
54

65
apply from: "${parent.projectDir}/gradle/include/jvm-project.gradle"

utbot-summary/build.gradle

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,3 @@ dependencies {
1414

1515
implementation group: 'com.github.javaparser', name: 'javaparser-core', version: '3.22.1'
1616
}
17-
18-
publishing {
19-
repositories {
20-
maven {
21-
name = "GitHubPackages"
22-
url = "https://maven.pkg.github.com/UnitTestBot/UTBotJava"
23-
credentials {
24-
username = System.getenv("GITHUB_ACTOR")
25-
password = System.getenv("GITHUB_TOKEN")
26-
}
27-
}
28-
}
29-
}

0 commit comments

Comments
 (0)