Skip to content

Commit 9decb19

Browse files
Merge pull request #36 from gravity9-tech/bugfix/19_change_group_name
#19 Changed group name in build.gradle
2 parents fabe6c2 + 10c813b commit 9decb19

File tree

5 files changed

+19
-9
lines changed

5 files changed

+19
-9
lines changed

BUILD.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ below:
1717
# Build, test the package
1818
./gradlew test
1919
# Install in your local maven repository
20-
./gradlew clean install
20+
./gradlew build publishToMavenLocal
2121
```
2222

2323
If you try and play around with Gradle configuration files, in order to be

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ With Gradle:
3838

3939
```groovy
4040
dependencies {
41-
compile(group: "com.gravity9", name: "java-json-tools", version: "yourVersionHere");
41+
compile(group: "com.gravity9", name: "json-patch-path", version: "yourVersionHere");
4242
}
4343
```
4444

@@ -47,7 +47,7 @@ With Maven:
4747
```xml
4848
<dependency>
4949
<groupId>com.gravity9</groupId>
50-
<artifactId>java-json-tools</artifactId>
50+
<artifactId>json-patch-path</artifactId>
5151
<version>yourVersionHere</version>
5252
</dependency>
5353
```

build.gradle

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ apply(plugin: "java");
3535
apply(plugin: "biz.aQute.bnd.builder");
3636
apply(plugin: "net.ltgt.errorprone");
3737
apply(plugin: 'org.owasp.dependencycheck');
38+
apply(plugin: 'maven-publish')
39+
apply(plugin: 'java-library')
3840
apply(from: "project.gradle");
3941

40-
group = "com.github.java-json-tools";
42+
group = "com.gravity9";
4143

4244
/*
4345
* Repositories to use
@@ -100,3 +102,11 @@ wrapper {
100102
gradleVersion = "7.6.1";
101103
distributionUrl = "https://services.gradle.org/distributions/gradle-${gradleVersion}-all.zip";
102104
}
105+
106+
publishing {
107+
publications {
108+
maven(MavenPublication) {
109+
from components.java
110+
}
111+
}
112+
}

project.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/*
2121
* Project-specific settings. Unfortunately we cannot put the name in there!
2222
*/
23-
group = "com.gravity9.java-json-tools";
23+
group = "com.gravity9";
2424
sourceCompatibility = JavaVersion.VERSION_11
2525
targetCompatibility = JavaVersion.VERSION_11
2626
project.ext.description = "JSON Patch (RFC 6902) and JSON Merge Patch (RFC 7386) implementation in Java, using extended TMF620 JsonPath syntax";
@@ -31,9 +31,9 @@ project.ext.description = "JSON Patch (RFC 6902) and JSON Merge Patch (RFC 7386)
3131
dependencies {
3232
compileOnly(group: "com.google.code.findbugs", name: "jsr305", version: "3.0.2");
3333
implementation(group: "com.fasterxml.jackson.core", name: "jackson-databind", version: "2.15.2");
34-
implementation(group: 'com.jayway.jsonpath', name: 'json-path', version: '2.8.0')
35-
implementation(group: "com.github.java-json-tools", name: "msg-simple", version: "1.2");
36-
implementation(group: "com.github.java-json-tools", name: "jackson-coreutils", version: "2.0");
34+
api(group: 'com.jayway.jsonpath', name: 'json-path', version: '2.8.0')
35+
api(group: "com.github.java-json-tools", name: "msg-simple", version: "1.2");
36+
api(group: "com.github.java-json-tools", name: "jackson-coreutils", version: "2.0");
3737
testImplementation(group: "org.testng", name: "testng", version: "7.1.0") {
3838
exclude(group: "junit", module: "junit");
3939
exclude(group: "org.beanshell", module: "bsh");

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
* - ASL 2.0: http://www.apache.org/licenses/LICENSE-2.0.txt
1818
*/
1919

20-
rootProject.name = "java-json-tools";
20+
rootProject.name = "json-patch-path";

0 commit comments

Comments
 (0)