Skip to content

Commit 4921dc1

Browse files
committed
Introduce BOM module.
1 parent 35c77ef commit 4921dc1

File tree

4 files changed

+23
-1
lines changed

4 files changed

+23
-1
lines changed

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ plugins {
99
}
1010

1111
subprojects {
12+
if (name == 'xpath-to-xml-bom') return // skip empty projects
13+
1214
apply plugin: 'java-library'
1315
apply plugin: 'org.beryx.jar'
1416
apply from: rootProject.file('gradle/check-checkstyle.gradle')

gradle/publish-maven.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'signing'
44
publishing {
55
publications {
66
mavenJava(MavenPublication) {
7-
from components.java
7+
from components.find { it.name == 'java' || it.name == 'javaPlatform' }
88
versionMapping {
99
usage('java-api') {
1010
fromResolutionResult()

settings.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
rootProject.name = 'xpath-to-xml'
2+
23
include 'xpath-to-json-gson'
34
include 'xpath-to-json-jackson'
45
include 'xpath-to-json-jakarta'
6+
include 'xpath-to-xml-bom'
57
include 'xpath-to-xml-core'
68
include 'xpath-to-xml-dom'
79
include 'xpath-to-xml-dom4j'

xpath-to-xml-bom/build.gradle

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apply plugin: 'java-platform'
2+
apply from: rootProject.file('gradle/publish-maven.gradle')
3+
4+
dependencies {
5+
constraints {
6+
api project(':xpath-to-json-gson')
7+
api project(':xpath-to-json-jackson')
8+
api project(':xpath-to-json-jakarta')
9+
api project(':xpath-to-xml-core')
10+
api project(':xpath-to-xml-dom')
11+
api project(':xpath-to-xml-dom4j')
12+
api project(':xpath-to-xml-jdom')
13+
api project(':xpath-to-xml-scala_2.12')
14+
api project(':xpath-to-xml-scala_2.13')
15+
api project(':xpath-to-xml-scala_3')
16+
api project(':xpath-to-xml-xom')
17+
}
18+
}

0 commit comments

Comments
 (0)