-
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.
Merge remote-tracking branch 'origin/develop'
- Loading branch information
Showing
14 changed files
with
250 additions
and
7 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
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
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,8 @@ | ||
dependencies { | ||
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") | ||
implementation("org.yaml:snakeyaml:$snakeyamlVersion") | ||
implementation("io.github.astrapi69:silly-collection:$sillyCollectionVersion") | ||
testImplementation("io.github.astrapi69:file-worker:$fileWorkerVersion") | ||
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion") | ||
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion") | ||
} |
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,17 @@ | ||
spotless { | ||
|
||
format "misc", { | ||
// define the files to apply `misc` to | ||
target "*.gradle", "*.md", ".gitignore" | ||
|
||
// define the steps to apply to those files | ||
trimTrailingWhitespace() | ||
indentWithSpaces() // or spaces. Takes an integer argument if you don"t like 4 | ||
endWithNewline() | ||
} | ||
java { | ||
// export config file: https://github.com/diffplug/spotless/blob/main/ECLIPSE_SCREENSHOTS.md#creating-spotlessimportorder | ||
importOrderFile('src/test/resources/spotless/importorder.properties') // import order file as exported from eclipse | ||
eclipse("4.21.0").configFile("src/test/resources/spotless/alpharo-formatter.xml") | ||
} | ||
} |
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,9 @@ | ||
task tagRelease { | ||
description = "Tags the current head with the project\'s version." | ||
doLast { | ||
grgit.tag.add { | ||
name = "RELEASE-${project.version.toString()}" | ||
message = "New release in version ${version}" | ||
} | ||
} | ||
} |
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,37 @@ | ||
license { | ||
ext.year="$projectInceptionYear" | ||
ext.owner="$projectLeaderName" | ||
ignoreFailures = true | ||
header rootProject.file("src/main/resources/LICENSE.txt") | ||
excludes(["**/README", | ||
"**/README.md", | ||
"**/LICENSE", | ||
"**/NOTICE", | ||
"**/*.xml", | ||
"**/*.xsl", | ||
"**/*.xsd", | ||
"**/*.dtd", | ||
"**/*.html", | ||
"**/*.jsp", | ||
"**/*.jpa", | ||
"**/*.sql", | ||
"**/*.properties", | ||
"**/*.bat", | ||
"**/*.gradle", | ||
"**/*.MF", | ||
"**/*.txt", | ||
"**/*.vm", | ||
"**/*.log", | ||
"**/*.map", | ||
"**/*.js.map", | ||
"**/*.tmpl", | ||
"**/*.js.tmpl", | ||
"**/*.editorconfig", | ||
"src/test/resources/**", | ||
"src/main/resources/**", | ||
"out/**", | ||
"build/**"]) | ||
} | ||
// workhack for license issue #76 | ||
gradle.startParameter.excludedTaskNames += "licenseMain" | ||
gradle.startParameter.excludedTaskNames += "licenseTest" |
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,18 @@ | ||
import java.text.SimpleDateFormat | ||
|
||
jar { | ||
dependsOn(test) | ||
manifest { | ||
attributes( | ||
"Name": project.name, | ||
"Manifest-Version": project.version, | ||
"Implementation-Title": "$groupPackage" + "." + "$rootProject.name", | ||
"Implementation-Version": project.version, | ||
"Implementation-Vendor": "$projectLeaderName", | ||
"Created-By": "Gradle ${gradle.gradleVersion}", | ||
"Built-By": "$projectLeaderName", | ||
"Build-Timestamp": new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(new Date()), | ||
"Build-Jdk": "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})", | ||
"Build-OS": "${System.properties['os.name']} ${System.properties['os.arch']} ${System.properties['os.version']}") | ||
} | ||
} |
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,82 @@ | ||
def releaseVersion = !version.endsWith("SNAPSHOT") | ||
|
||
tasks.withType(GenerateModuleMetadata) { | ||
enabled = false | ||
} | ||
|
||
task sourcesJar(type: Jar) { | ||
archiveClassifier.set("sources") | ||
from(sourceSets.main.allJava) | ||
} | ||
|
||
task javadocJar(type: Jar) { | ||
from javadoc | ||
archiveClassifier.set("javadoc") | ||
javadoc.properties.failOnError = true | ||
} | ||
|
||
javadoc { | ||
failOnError = false | ||
if (JavaVersion.current().isJava9Compatible()) { | ||
options.addBooleanOption("html5", true) | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
artifactId = "$rootProject.name" | ||
from components.java | ||
artifact sourcesJar | ||
artifact javadocJar | ||
pom { | ||
name = "$rootProject.name" | ||
description = "$projectDescription" | ||
url = "$projectScmProviderUrl" + "$projectHolderUsername" + "$slash" + "$rootProject.name" | ||
organization { | ||
name = "$projectOrganizationName" | ||
url = "$projectOrganizationUrl" | ||
} | ||
issueManagement { | ||
system = "$projectIssueManagementSystem" | ||
url = "$projectScmProviderUrl" + "$projectHolderUsername" + "$slash" + "$rootProject.name" + "$issuesPath" | ||
} | ||
licenses { | ||
license { | ||
name = "$projectLicenseName" | ||
url = "$projectLicenseUrl" | ||
distribution = "$projectLicenseDistribution" | ||
} | ||
} | ||
developers { | ||
developer { | ||
id = "$projectHolderUsername" | ||
name = "$projectLeaderName" | ||
} | ||
} | ||
scm { | ||
connection = "$projectScmGitUrlPrefix" + "$projectScmProviderDomain" + "$colon" + "$projectHolderUsername" + "$slash" + "$rootProject.name" + "$projectScmGitUrlSuffix" | ||
developerConnection = "$projectScmGitUrlPrefix" + "$projectScmProviderDomain" + "$colon" + "$projectHolderUsername" + "$slash" + "$rootProject.name" + "$projectScmGitUrlSuffix" | ||
url = "$projectScmGitUrlPrefix" + "$projectScmProviderDomain" + "$colon" + "$projectHolderUsername" + "$slash" + "$rootProject.name" + "$projectScmGitUrlSuffix" | ||
} | ||
} | ||
} | ||
} | ||
repositories { | ||
maven { | ||
credentials { | ||
username System.getenv("$projectRepositoriesUserNameKey") ?: project.property("$projectRepositoriesUserNameKey") | ||
password System.getenv("$projectRepositoriesPasswordKey") ?: project.property("$projectRepositoriesPasswordKey") | ||
} | ||
def releasesRepoUrl = "$projectRepositoriesReleasesRepoUrl" | ||
def snapshotsRepoUrl = "$projectRepositoriesSnapshotsRepoUrl" | ||
url = releaseVersion ? releasesRepoUrl : snapshotsRepoUrl | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
if (releaseVersion) { | ||
sign publishing.publications.mavenJava | ||
} | ||
} |
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,18 @@ | ||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
maven { | ||
name "Sonatype Nexus Releases" | ||
url "https://oss.sonatype.org/service/local/staging/deploy/maven2/" | ||
mavenContent { | ||
releasesOnly() | ||
} | ||
} | ||
maven { | ||
name "Sonatype Nexus Snapshots" | ||
url "https://oss.sonatype.org/content/repositories/snapshots" | ||
mavenContent { | ||
snapshotsOnly() | ||
} | ||
} | ||
} |
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,12 @@ | ||
test { | ||
useJUnitPlatform() | ||
} | ||
|
||
jacocoTestReport { | ||
reports { | ||
xml.required.set(true) | ||
html.required.set(true) | ||
} | ||
} | ||
|
||
check.dependsOn jacocoTestReport |
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\://services.gradle.org/distributions/gradle-8.0.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
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