Skip to content

Commit

Permalink
Fix gradle build
Browse files Browse the repository at this point in the history
  • Loading branch information
jsligh committed Jun 28, 2024
1 parent 7aec3c8 commit 5488cbe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions PrebidMobile/publisher.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@ task javadoc(type: Javadoc, dependsOn: assemble) {
source = android.sourceSets.main.java.srcDirs
source += file('build/generated/source/buildConfig/release/org/prebid/mobile/core/BuildConfig.java').path

classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
classpath += project.files(project.android.getBootClasspath())

options.addBooleanOption('-ignore-source-errors', true)
options.addStringOption('Xdoclint:none', '-quiet')
options.addStringOption('encoding', 'UTF-8')
options.addStringOption('charSet', 'UTF-8')
afterEvaluate {
tasks.javadoc.classpath += files(project.android.getBootClasspath())
}
}


task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier.set("javadoc")
from javadoc.destinationDir
Expand All @@ -18,4 +22,4 @@ task javadocJar(type: Jar, dependsOn: javadoc) {
task sourcesJar(type: Jar) {
archiveClassifier.set("sources")
from android.sourceSets.main.java.srcDirs
}
}
1 change: 1 addition & 0 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ set CMD_LINE_ARGS=%*
@rem Setup the command line

set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
CLASSPATH += files("${android.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar")

@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
Expand Down

0 comments on commit 5488cbe

Please sign in to comment.