Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
prbprbprb committed Aug 9, 2023
1 parent 3d5f224 commit c188695
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,14 @@ if (androidSdkInstalled) {

def javadocsJar = tasks.register("javadocsJar", Jar) {
dependsOn javadocs
classifier = 'javadoc'
archiveClassifier = 'javadoc'
from {
javadocs.get().destinationDir
}
}

def sourcesJar = tasks.register("sourcesJar", Jar) {
classifier = 'sources'
archiveClassifier = 'sources'
from android.sourceSets.main.java.srcDirs
}

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,12 @@ subprojects {
}

tasks.register("javadocJar", Jar) {
classifier = 'javadoc'
archiveClassifier = 'javadoc'
from javadoc
}

tasks.register("sourcesJar", Jar) {
classifier = 'sources'
archiveClassifier = 'sources'
from sourceSets.main.allSource
}

Expand Down
6 changes: 5 additions & 1 deletion openjdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,15 @@ processResources {
}

tasks.register("testJar", ShadowJar) {
classifier = 'tests'
archiveClassifier = 'tests'
configurations = [project.configurations.testRuntimeClasspath]
from sourceSets.test.output
}

tasks.named("sourcesJar") {
dependsOn generateProperties
}

if (isExecutableOnPath('cpplint')) {
def cpplint = tasks.register("cpplint", Exec) {
executable = 'cpplint'
Expand Down

0 comments on commit c188695

Please sign in to comment.