Hi guys, running my flutter app with maven publish...
# flutter
t
Hi guys, running my flutter app with maven publish and I get this error when I run gradle publish: I need help. * What went wrong: Task 'publish' not found in root project 'xxxx'. this is my build.gradle file in the root of my project.
buildscript {
ext.kotlin_version = '1.6.10' repositories { google() mavenCentral() } dependencies { classpath 'com.android.tools.buildG7.1.2' classpath "org.jetbrains.kotlinkotlin gradle plugin$kotlin_version" } } plugins { id("java-gradle-plugin") id("maven-publish") id("com.gradle.plugin-publish") version "1.0.0-rc-1" } version = '0.0.1-SNAPSHOT' publishing { repositories { maven { name = "GitHubPackages" url = uri("https://maven.pkg.github.com/anthonynyame/Flutter-App") credentials { username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_ACTOR") password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN") } } } publications { gpr(MavenPublication) { from(components.java) } } }