This repository has been archived by the owner on Sep 15, 2021. It is now read-only.
-
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
Albert Schimpf
committed
Jul 6, 2020
1 parent
17c7ab7
commit 207df53
Showing
45 changed files
with
180 additions
and
533 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,31 @@ | ||
### gradle | ||
**/.gradle | ||
!scraper-nodes-dev/gradle/wrapper/gradle-wrapper.jar | ||
|
||
/**/build/ | ||
/**/builds/ | ||
/**/classes/ | ||
|
||
### intellij | ||
.idea | ||
*.iml | ||
/**/out/ | ||
|
||
### vim | ||
**/*.swp | ||
|
||
## ignore antlr jar whereever it is | ||
**/antlr.jar | ||
|
||
### junit error logs and normal logs | ||
**/errors.log | ||
**/*.log | ||
|
||
### generated editor html file | ||
**/resources/**/scraper-editor.html | ||
### generated class model file | ||
**/*class-model.json | ||
**/class-model.js | ||
|
||
|
||
/**/*nodes*link* |
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,45 @@ | ||
plugins { | ||
id 'jacoco' | ||
} | ||
|
||
allprojects { | ||
repositories { | ||
jcenter() | ||
} | ||
} | ||
|
||
subprojects { | ||
configurations { | ||
providedCompile | ||
} | ||
|
||
afterEvaluate { | ||
dependencies { | ||
providedCompile fileTree(dir: 'libs', include: '*.jar') | ||
testImplementation fileTree(dir: 'libs', include: '*.jar') | ||
|
||
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.1' | ||
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.6.1' | ||
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine' | ||
} | ||
|
||
compileJava { | ||
sourceSets.main.compileClasspath += configurations.providedCompile | ||
} | ||
} | ||
|
||
group = 'org.scraper' | ||
|
||
plugins.withType(JavaPlugin).configureEach { | ||
java { | ||
modularity.inferModulePath = true | ||
} | ||
} | ||
|
||
tasks.withType(Test).configureEach { | ||
useJUnitPlatform() | ||
} | ||
} | ||
|
||
// merge coverage | ||
apply from: 'gradle/jacoco-merge.gradle' |
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,31 @@ | ||
configure( subprojects ) { | ||
apply plugin: 'jacoco' | ||
} | ||
|
||
tasks.register("codeCoverageReport", JacocoReport) { | ||
// If a subproject applies the 'jacoco' plugin, add the result it to the report | ||
subprojects { subproject -> | ||
subproject.plugins.withType(JacocoPlugin).configureEach { | ||
subproject.tasks.matching({ t -> t.extensions.findByType(JacocoTaskExtension) }).configureEach { testTask -> | ||
sourceSets subproject.sourceSets.main | ||
executionData(testTask) | ||
} | ||
|
||
// To automatically run `test` every time `./gradlew codeCoverageReport` is called, | ||
// you may want to set up a task dependency between them as shown below. | ||
// Note that this requires the `test` tasks to be resolved eagerly (see `forEach`) which | ||
// may have a negative effect on the configuration time of your build. | ||
subproject.tasks.matching({ t -> t.extensions.findByType(JacocoTaskExtension) }).forEach { | ||
rootProject.tasks.codeCoverageReport.dependsOn(it) | ||
} | ||
} | ||
} | ||
|
||
// enable the different report types (html, xml, csv) | ||
reports { | ||
xml.enabled true | ||
html.enabled true | ||
csv.enabled true | ||
} | ||
} | ||
|
Binary file renamed
BIN
+54.3 KB
...-scores/gradle/wrapper/gradle-wrapper.jar → gradle/wrapper/gradle-wrapper.jar
100755 → 100644
Binary file not shown.
5 changes: 3 additions & 2 deletions
5
.../gradle/wrapper/gradle-wrapper.properties → gradle/wrapper/gradle-wrapper.properties
100755 → 100644
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#Sat Jul 04 10:44:41 CEST 2020 | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-all.zip | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,30 +1,23 @@ | ||
// treat this as a stand-alone project if not used in big scraper project | ||
if (findProject(':scraper-plugins') == null) { | ||
apply from: 'gradle/scraper-plugin.gradle' | ||
apply from: 'gradle/gradle-module-fix.gradle' | ||
plugins { | ||
id 'java-library' | ||
id 'java-library-distribution' | ||
id("de.jjohannes.extra-java-module-info") version "0.1" | ||
} | ||
|
||
version = '0.1.0' | ||
|
||
dependencies { | ||
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.8.0-beta4' | ||
|
||
// put your dependencies here | ||
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.10.+' | ||
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.10.+' | ||
|
||
// websocket | ||
provided 'org.java-websocket:Java-WebSocket:1.4.0' | ||
} | ||
|
||
task bundleFatJar(type: Jar) { t -> | ||
from { | ||
configurations.provided.findAll { it.name.endsWith('jar') }.collect { zipTree(it) } | ||
} | ||
from { | ||
sourceSets.main.output | ||
extraJavaModuleInfo { | ||
module("Java-WebSocket-1.4.0.jar", "Java.Websocket", "1.4.0") { | ||
exports "org.java_websocket" | ||
exports "org.java_websocket.drafts" | ||
exports "org.java_websocket.exceptions" | ||
exports "org.java_websocket.handshake" | ||
exports "org.java_websocket.server" | ||
} | ||
module("slf4j-api-1.7.25.jar", "org.slf4j", "1.7.25") {} | ||
} | ||
|
||
archiveFileName = "scraper-plugins-debugger-${version}.jar" | ||
destinationDirectory = file("$rootDir/build/libs") | ||
dependencies { | ||
// websocket | ||
implementation 'org.java-websocket:Java-WebSocket:1.4.0' | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
Oops, something went wrong.