File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 17
17
# Build, test the package
18
18
./gradlew test
19
19
# Install in your local maven repository
20
- ./gradlew clean install
20
+ ./gradlew build publishToMavenLocal
21
21
```
22
22
23
23
If you try and play around with Gradle configuration files, in order to be
Original file line number Diff line number Diff line change @@ -35,9 +35,11 @@ apply(plugin: "java");
35
35
apply(plugin : " biz.aQute.bnd.builder" );
36
36
apply(plugin : " net.ltgt.errorprone" );
37
37
apply(plugin : ' org.owasp.dependencycheck' );
38
+ apply(plugin : ' maven-publish' )
39
+ apply(plugin : ' java-library' )
38
40
apply(from : " project.gradle" );
39
41
40
- group = " com.gravity9.java-json-tools " ;
42
+ group = " com.gravity9" ;
41
43
42
44
/*
43
45
* Repositories to use
@@ -100,3 +102,11 @@ wrapper {
100
102
gradleVersion = " 7.6.1" ;
101
103
distributionUrl = " https://services.gradle.org/distributions/gradle-${ gradleVersion} -all.zip" ;
102
104
}
105
+
106
+ publishing {
107
+ publications {
108
+ maven(MavenPublication ) {
109
+ from components. java
110
+ }
111
+ }
112
+ }
Original file line number Diff line number Diff line change @@ -31,9 +31,9 @@ project.ext.description = "JSON Patch (RFC 6902) and JSON Merge Patch (RFC 7386)
31
31
dependencies {
32
32
compileOnly(group : " com.google.code.findbugs" , name : " jsr305" , version : " 3.0.2" );
33
33
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" );
37
37
testImplementation(group : " org.testng" , name : " testng" , version : " 7.1.0" ) {
38
38
exclude(group : " junit" , module : " junit" );
39
39
exclude(group : " org.beanshell" , module : " bsh" );
You can’t perform that action at this time.
0 commit comments