-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dfaddb1
commit 2127ce8
Showing
23 changed files
with
6,544 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
## Gradle | ||
.gradle | ||
gradle-app.setting | ||
build/ | ||
|
||
## Java: | ||
*.class | ||
*.war | ||
*.ear | ||
hs_err_pid* | ||
|
||
## Android: | ||
android/libs/armeabi/ | ||
android/libs/armeabi-v7a/ | ||
android/libs/x86/ | ||
android/gen/ | ||
local.properties | ||
com_crashlytics_export_strings.xml | ||
|
||
## GWT: | ||
war/ | ||
html/war/gwt_bree/ | ||
html/gwt-unitCache/ | ||
.apt_generated/ | ||
html/war/WEB-INF/deploy/ | ||
html/war/WEB-INF/classes/ | ||
.gwt/ | ||
gwt-unitCache/ | ||
www-test/ | ||
.gwt-tmp/ | ||
|
||
## IntelliJ, Android Studio: | ||
.idea/ | ||
*.ipr | ||
*.iws | ||
*.iml | ||
out/ | ||
|
||
## Eclipse | ||
.classpath | ||
.project | ||
.metadata | ||
**/bin/ | ||
tmp/ | ||
*.tmp | ||
*.bak | ||
*.swp | ||
*~.nib | ||
.settings/ | ||
.loadpath | ||
.externalToolBuilders/ | ||
*.launch | ||
|
||
## NetBeans | ||
**/nbproject/private/ | ||
build/ | ||
nbbuild/ | ||
dist/ | ||
nbdist/ | ||
nbactions.xml | ||
nb-configuration.xml | ||
|
||
## OS Specific | ||
.DS_Store | ||
*.symbolMap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
buildscript { | ||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } | ||
gradlePluginPortal() | ||
} | ||
dependencies { | ||
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.18.0' | ||
constraints { | ||
classpath("org.apache.logging.log4j:log4j-core") { | ||
version { | ||
strictly("[2.17, 3[") | ||
prefer("2.17.0") | ||
} | ||
because("CVE-2021-44228, CVE-2021-45046, CVE-2021-45105: Log4j vulnerable to remote code execution and other critical security vulnerabilities") | ||
} | ||
} | ||
} | ||
} | ||
|
||
apply plugin: 'java-library' | ||
apply plugin: 'com.vanniktech.maven.publish' | ||
apply plugin: 'idea' | ||
|
||
sourceCompatibility = 1.7 | ||
|
||
def projectName = 'juniper' | ||
|
||
group 'com.github.tommyettinger' | ||
|
||
version "$VERSION_NAME" | ||
|
||
[compileJava, compileTestJava, javadoc]*.options*.encoding = 'UTF-8' | ||
|
||
// Disable JDK 8's doclint | ||
// https://blog.joda.org/2014/02/turning-off-doclint-in-jdk-8-javadoc.html | ||
if (JavaVersion.current().isJava8Compatible()) { | ||
allprojects { | ||
tasks.withType(Javadoc) { | ||
// The -quiet is because of some sort of weird JDK JavaCompiler bug: | ||
// https://discuss.gradle.org/t/passing-arguments-to-compiler-and-javadoc/1661 | ||
options.addStringOption('Xdoclint:none,-missing', '-quiet') | ||
} | ||
} | ||
} | ||
|
||
if(JavaVersion.current().isJava9Compatible()) { | ||
allprojects { | ||
tasks.withType(JavaCompile) { | ||
options.release.set(7) // You can change this from 7 to 8 if you don't support iOS. | ||
// Using 7 triggers deprecation warnings on newer JDKs, but RoboVM needs it. | ||
// However, LWJGL3 needs Java 8 starting in 1.10.1-SNAPSHOT, so... | ||
} | ||
} | ||
} | ||
idea.module.excludeDirs += [file("src/main/java/emu/")] | ||
[compileJava, compileTestJava, javadoc]*.exclude("emu") | ||
|
||
// JavaDocs will be published inside the docs/ folder, which you can easily put on GitHub Pages in your repo settings. | ||
javadoc.destinationDir = file('docs/apidocs') | ||
|
||
jar { | ||
archiveBaseName.set(projectName) | ||
manifest { | ||
attributes 'Implementation-Title': projectName, 'Implementation-Version': archiveVersion | ||
} | ||
} | ||
|
||
repositories { | ||
// You can uncomment mavenLocal() if you need self-built versions, but it can be a problem with GWT or other sources dependencies. | ||
//mavenLocal() | ||
mavenCentral() | ||
maven { url 'https://s01.oss.sonatype.org' } | ||
google() | ||
gradlePluginPortal() | ||
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' } | ||
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' } | ||
maven { url 'https://jitpack.io' } | ||
} | ||
|
||
dependencies { | ||
api "com.github.tommyettinger:digital:$digitalVersion" | ||
testImplementation "junit:junit:4.13.2" | ||
|
||
// Should be uncommented if you target Java 8, I think. | ||
// Should stay commented out if you target Java 7 (the default). | ||
//testRuntimeOnly "org.junit.vintage:junit-vintage-engine:5.8.2" | ||
|
||
constraints { | ||
implementation("org.apache.logging.log4j:log4j-core") { | ||
version { | ||
strictly("[2.17, 3[") | ||
prefer("2.17.0") | ||
} | ||
because("CVE-2021-44228, CVE-2021-45046, CVE-2021-45105: Log4j vulnerable to remote code execution and other critical security vulnerabilities") | ||
} | ||
} | ||
|
||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
org.gradle.daemon=true | ||
org.gradle.jvmargs=-Xms128m -Xmx512m -Dfile.encoding=UTF-8 -Dconsole.encoding=UTF-8 | ||
org.gradle.configureondemand=false | ||
digitalVersion=4e74485799 | ||
|
||
GROUP=com.github.tommyettinger | ||
POM_ARTIFACT_ID=juniper | ||
VERSION_NAME=0.0.1-SNAPSHOT | ||
|
||
POM_NAME=juniper | ||
POM_DESCRIPTION=Pseudo-random number generators with minimal dependencies. | ||
POM_INCEPTION_YEAR=2022 | ||
|
||
POM_URL=https://github.com/tommyettinger/juniper/ | ||
POM_SCM_URL=https://github.com/tommyettinger/juniper/ | ||
POM_SCM_CONNECTION=scm:https://[email protected]/tommyettinger/juniper.git | ||
POM_SCM_DEV_CONNECTION=scm:git:https://github.com/tommyettinger/juniper.git | ||
|
||
POM_LICENCE_NAME=The Apache Software License, Version 2.0 | ||
POM_LICENCE_URL=https://www.apache.org/licenses/LICENSE-2.0.txt | ||
POM_LICENCE_DIST=repo | ||
|
||
POM_DEVELOPER_ID=tommyettinger | ||
POM_DEVELOPER_NAME=Tommy Ettinger | ||
POM_DEVELOPER_URL=https://github.com/tommyettinger/ |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\:https://services.gradle.org/distributions/gradle-7.4.2-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.