diff --git a/.gitignore b/.gitignore index 723ef36f4..e3240aadf 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -.idea \ No newline at end of file +**/*.idea +src/main +*.iml diff --git a/package.sh b/package.sh index b16026d1e..67b111859 100644 --- a/package.sh +++ b/package.sh @@ -1,9 +1,14 @@ #!/bin/bash SRC_FOLDER=dist/src/main/java/org/json +MODITECT_FOLDER=dist/src/moditect WORKING_DIR=`pwd` # Get the original sources from Douglas Crockfords GitHub repo mkdir -p $SRC_FOLDER +#mkdir -p $MODITECT_FOLDER +# Copy the module-info to the dist folder to build +#cp src/moditect/module-info.java $MODITECT_FOLDER/module-info.java +#echo "Copied the module info file" git clone https://github.com/stleary/JSON-java.git $SRC_FOLDER echo "" diff --git a/pom.xml b/pom.xml index 4f7e02b58..bda855ff0 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,19 @@ - + + + + sonatype-nexus-snapshots + Sonatype Nexus Snapshots + https://oss.sonatype.org/content/repositories/snapshots + false + true + + + + + org.apache.felix @@ -113,14 +125,45 @@ + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.0.0-M2 + + + enforce-java + + enforce + + + + + 1.8.0 + + + + + + org.apache.maven.plugins maven-compiler-plugin - 2.3.2 + 3.8.1 %%JAVAVERSION%% %%JAVAVERSION%% + + + + + org.ow2.asm + asm + 7.0 + + org.apache.maven.plugins @@ -147,10 +190,22 @@ -Xdoclint:none + false + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.3 + true + + ossrh + https://oss.sonatype.org/ + false + + org.apache.maven.plugins maven-gpg-plugin @@ -165,17 +220,6 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.3 - true - - ossrh - https://oss.sonatype.org/ - false - - org.apache.maven.plugins maven-jar-plugin @@ -187,6 +231,31 @@ + + org.moditect + moditect-maven-plugin + 1.0.0.Beta2 + + + add-module-infos + package + + add-module-info + + + + + 9 + true + + + src/moditect/module-info.java + + + + + + diff --git a/src/moditect/module-info.java b/src/moditect/module-info.java new file mode 100644 index 000000000..202a3a774 --- /dev/null +++ b/src/moditect/module-info.java @@ -0,0 +1,3 @@ +module org.json { + exports org.json; +}