Skip to content

Commit f787b37

Browse files
committed
Created gradle module and moved existing code to new one
1 parent 94e24a6 commit f787b37

131 files changed

Lines changed: 40 additions & 38 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

build.gradle

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,31 @@
1-
apply plugin: 'java-library'
2-
31
allprojects {
2+
apply plugin: 'java-library'
43
sourceCompatibility = 1.7
54
targetCompatibility = 1.7
6-
}
75

8-
repositories {
9-
jcenter()
10-
}
6+
version 'v0.12.0'
117

12-
dependencies {
13-
implementation 'com.grack:nanojson:1.1'
14-
implementation 'org.jsoup:jsoup:1.9.2'
15-
implementation 'org.mozilla:rhino:1.7.7.1'
16-
implementation 'com.github.spotbugs:spotbugs-annotations:3.1.0'
17-
testImplementation 'junit:junit:4.12'
8+
repositories {
9+
jcenter()
10+
}
1811
}
1912

20-
task sourcesJar(type: Jar, dependsOn: classes) {
21-
classifier = 'sources'
22-
from sourceSets.main.allSource
23-
}
13+
subprojects {
14+
task sourcesJar(type: Jar, dependsOn: classes) {
15+
classifier = 'sources'
16+
from sourceSets.main.allSource
17+
}
2418

25-
artifacts {
26-
archives sourcesJar
27-
}
19+
tasks.withType(Test) {
20+
testLogging {
21+
events "skipped", "failed"
22+
showStandardStreams = true
23+
exceptionFormat = 'full'
24+
}
25+
}
2826

29-
tasks.withType(Test) {
30-
testLogging {
31-
events "skipped", "failed"
32-
showStandardStreams = true
33-
exceptionFormat = 'full'
27+
artifacts {
28+
archives sourcesJar
3429
}
35-
}
30+
}
31+

extractor/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
dependencies {
2+
implementation project(':timeago-parser')
3+
4+
implementation 'com.grack:nanojson:1.1'
5+
implementation 'org.jsoup:jsoup:1.9.2'
6+
implementation 'org.mozilla:rhino:1.7.7.1'
7+
implementation 'com.github.spotbugs:spotbugs-annotations:3.1.0'
8+
9+
testImplementation 'junit:junit:4.12'
10+
}

src/main/java/org/schabi/newpipe/extractor/Collector.java renamed to extractor/src/main/java/org/schabi/newpipe/extractor/Collector.java

File renamed without changes.

src/main/java/org/schabi/newpipe/extractor/Downloader.java renamed to extractor/src/main/java/org/schabi/newpipe/extractor/Downloader.java

File renamed without changes.

src/main/java/org/schabi/newpipe/extractor/Extractor.java renamed to extractor/src/main/java/org/schabi/newpipe/extractor/Extractor.java

File renamed without changes.

src/main/java/org/schabi/newpipe/extractor/Info.java renamed to extractor/src/main/java/org/schabi/newpipe/extractor/Info.java

File renamed without changes.

src/main/java/org/schabi/newpipe/extractor/InfoItem.java renamed to extractor/src/main/java/org/schabi/newpipe/extractor/InfoItem.java

File renamed without changes.

src/main/java/org/schabi/newpipe/extractor/InfoItemExtractor.java renamed to extractor/src/main/java/org/schabi/newpipe/extractor/InfoItemExtractor.java

File renamed without changes.

src/main/java/org/schabi/newpipe/extractor/InfoItemsCollector.java renamed to extractor/src/main/java/org/schabi/newpipe/extractor/InfoItemsCollector.java

File renamed without changes.

src/main/java/org/schabi/newpipe/extractor/ListExtractor.java renamed to extractor/src/main/java/org/schabi/newpipe/extractor/ListExtractor.java

File renamed without changes.

0 commit comments

Comments
 (0)