Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] android – Extension of type ‘BintrayExtension’ does not exist

Posted on November 11, 2022 By

Solution 1 :

The solution is replacing:

id "com.jfrog.bintray" version "1.8.5"

with:

plugins.apply(BintrayPlugin::class.java)

Many thanks to Tom Eyckmans for pointing this out.

Problem :

My project build.gradle:

...
plugins {
    id "maven-publish"
    id "com.jfrog.bintray" version "1.8.5"
}

My library module build.gradle:

apply plugin: 'kotlin'
apply plugin: 'java-library'
apply plugin: 'com.android.lint'
...
if (project.rootProject.file('local.properties').exists()) {
    apply from: rootProject.file('deploy-bintray.gradle.kts')
}

My library module deploy-bintray.gradle.kts:

import com.jfrog.bintray.gradle.BintrayExtension

apply(plugin = "maven-publish")
apply(plugin = "com.jfrog.bintray")

configure<BintrayExtension> {...}
configure<PublishingExtension> {...}

And this is the error I get from gradle assemble:

Extension of type ‘BintrayExtension’ does not exist. Currently registered extension types: [ExtraPropertiesExtension,
KotlinJvmProjectExtension, KotlinTestsRegistry,
DefaultArtifactPublicationSet, ReportingExtension, SourceSetContainer,
JavaPluginExtension, JavaInstallationRegistry, LintOptions,
PublishingExtension, BintrayExtension]

I’ve added:

buildscript {
    repositories {
        maven("https://plugins.gradle.org/m2")
    }

    dependencies {
        classpath("com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5")
    }
}

But I get the same output… If I open BintrayExtension.groovy the package name com.jfrog.bintray.gradle has this warning:

Package name mismatch. Actual: ‘com.jfrog.bintray.gradle’, expected:
”

and the class:

Class ‘BintrayExtension’ already exists in ‘com.jfrog.bintray.gradle’

What am I missing here?

READ  [FIXED] java - How do I get a list of specific tags in XML
Powered by Inline Related Posts
Android Tags:android, bintray, gradle, gradle-kotlin-dsl, maven-publish

Post navigation

Previous Post: [FIXED] java – Access Binding Adapters in multi module project
Next Post: [FIXED] java – Changing value in on item also changes in another item – RecyclerView Android

Related Posts

[FIXED] kotlin – how to update textview, ontextchanged in editext using Databinding android Android
[FIXED] android – EMM managed configuration key values for Boxer email app Android
[FIXED] java – How to use livedata to send data from service to activity? Android
[FIXED] android – Properly exchange items between multiples RecyclerViews Android
[FIXED] broadcastreceiver – Android check connectivity on low battery (power saver mode) Android
[FIXED] android – NestedScrollView not expanding in height inside AlertDialog Android

Archives

  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • Can Vicks humidifier be used without filter?
  • What color is Spanish green?
  • How old is Jamie in The War That Saved My Life?
  • When should I use scalp massager for hair growth?
  • Can I put polyurethane over liming wax?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme