Skip to content

Commit

Permalink
Update to Android Gradle Plugin 8.3.0-beta01
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgrefer committed Jan 7, 2024
1 parent de4c5e5 commit 82a33aa
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repositories {
}

def freefairGradleVersion = "8.4"
def agpVersion = "8.2.1"
def agpVersion = "8.3.0-beta01"

group = 'io.freefair.gradle'
description = "FreeFair Android Gradle Plugins"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public TaskProvider<Javadoc> getJavadocTask(Project project, Variant variant) {

javadoc.setClasspath(variant.getCompileClasspath());

CommonExtension<?, ?, ?, ?, ?> android = AndroidProjectUtil.getAndroidExtension(project);
CommonExtension<?, ?, ?, ?, ?, ?> android = AndroidProjectUtil.getAndroidExtension(project);

javadoc.getOptions().setSource(android.getCompileOptions().getSourceCompatibility().getMajorVersion());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
@UtilityClass
public class AndroidProjectUtil {

public static CommonExtension<?, ?, ?, ?, ?> getAndroidExtension(Project project) {
public static CommonExtension<?, ?, ?, ?, ?, ?> getAndroidExtension(Project project) {
try {
return project.getExtensions().getByType(CommonExtension.class);
} catch (UnknownDomainObjectException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void apply(Project project) {
inpath = project.getConfigurations().create("inpath");
aspectpath = project.getConfigurations().create("aspect");

CommonExtension<?, ?, ?, ?, ?> android = project.getExtensions().getByType(CommonExtension.class);
CommonExtension<?, ?, ?, ?, ?, ?> android = project.getExtensions().getByType(CommonExtension.class);
AndroidComponentsExtension<?, ?, ?> androidComponents = project.getExtensions().getByType(AndroidComponentsExtension.class);

android.getBuildTypes().configureEach(buildType -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class CiLintPlugin implements Plugin<Project> {
@Override
public void apply(Project project) {
if (CiUtil.isCi()) {
CommonExtension<?, ?, ?, ?, ?> extension = AndroidProjectUtil.getAndroidExtension(project);
CommonExtension<?, ?, ?, ?, ?, ?> extension = AndroidProjectUtil.getAndroidExtension(project);

extension.getLint().setHtmlReport(false);
extension.getLint().setXmlReport(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void apply(Project project) {
LombokPlugin lombokPlugin = project.getPlugins().apply(LombokPlugin.class);
lombokBasePlugin = lombokPlugin.getLombokBasePlugin();

CommonExtension<?, ?, ?, ?, ?> android = AndroidProjectUtil.getAndroidExtension(project);
CommonExtension<?, ?, ?, ?, ?, ?> android = AndroidProjectUtil.getAndroidExtension(project);
AndroidComponentsExtension<?, ?, ?> androidComponents = AndroidProjectUtil.getAndroidComponentsExtension(project);

project.afterEvaluate(p -> {
Expand Down

0 comments on commit 82a33aa

Please sign in to comment.