diff --git a/gradle/publish.gradle b/gradle/publish.gradle index 2048fe1c2..d152075f1 100644 --- a/gradle/publish.gradle +++ b/gradle/publish.gradle @@ -1,47 +1,47 @@ apply plugin: "maven-publish" -//android { -// publishing { -// singleVariant('release') { -// withSourcesJar() -// withJavadocJar() -// } -// } -//} -// -//afterEvaluate { -// publishing { -// publications { -// release(MavenPublication) { -// from components.release -// -// group = PROJ_GROUP -// artifactId = PROJ_ARTIFACTID -// version = PROJ_VERSION -// -// pom { -// name = PROJ_NAME -// description = PROJ_DESCRIPTION -// url = PROJ_VCSURL -// licenses { -// license { -// name = "The Apache License, Version 2.0" -// url = "https://www.apache.org/licenses/LICENSE-2.0.txt" -// } -// } -// developers { -// developer { -// id = DEVELOPER_ID -// name = DEVELOPER_NAME -// } -// } -// scm { -// connection = PROJ_ISSUETRACKERURL -// developerConnection = PROJ_VCSURL -// url = PROJ_WEBSITEURL -// } -// } -// } -// } -// } -//} +android { + publishing { + singleVariant('release') { + withSourcesJar() + withJavadocJar() + } + } +} + +afterEvaluate { + publishing { + publications { + release(MavenPublication) { + from components.release + + group = PROJ_GROUP + artifactId = PROJ_ARTIFACTID + version = PROJ_VERSION + + pom { + name = PROJ_NAME + description = PROJ_DESCRIPTION + url = PROJ_VCSURL + licenses { + license { + name = "The Apache License, Version 2.0" + url = "https://www.apache.org/licenses/LICENSE-2.0.txt" + } + } + developers { + developer { + id = DEVELOPER_ID + name = DEVELOPER_NAME + } + } + scm { + connection = PROJ_ISSUETRACKERURL + developerConnection = PROJ_VCSURL + url = PROJ_WEBSITEURL + } + } + } + } + } +} diff --git a/gsyVideoPlayer-aliplay/build.gradle b/gsyVideoPlayer-aliplay/build.gradle index 969832895..882136a50 100644 --- a/gsyVideoPlayer-aliplay/build.gradle +++ b/gsyVideoPlayer-aliplay/build.gradle @@ -14,7 +14,7 @@ dependencies { publishing { repositories { maven { - name = "GSYVideoPlayer-aliplay" + name = "GSYVideoPlayer" url = "https://maven.pkg.github.com/CarGuo/GSYVideoPlayer" credentials { username = System.getenv("GITHUB_ACTOR") diff --git a/gsyVideoPlayer-armv5/build.gradle b/gsyVideoPlayer-armv5/build.gradle index b65547046..595468a28 100644 --- a/gsyVideoPlayer-armv5/build.gradle +++ b/gsyVideoPlayer-armv5/build.gradle @@ -16,9 +16,4 @@ publishing { } } } - publications { - gpr(MavenPublication) { - from(components.java) - } - } }