Skip to content

Commit

Permalink
Merge pull request #779 from prebid/fix_gradle_build
Browse files Browse the repository at this point in the history
Fix Gradle Build
  • Loading branch information
jsligh authored Jul 9, 2024
2 parents 59a4804 + 5488cbe commit 73c4777
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 73c4777

Please sign in to comment.