Skip to content

Commit

Permalink
Fix issues with upload to JCenter
Browse files Browse the repository at this point in the history
  • Loading branch information
slavipetrov committed Nov 6, 2017
1 parent bb2929a commit 454c866
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 26 deletions.
Empty file modified gradlew
100644 → 100755
Empty file.
27 changes: 1 addition & 26 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,6 @@ apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven-publish'
apply from: '../dependencies.gradle'

ext {
bintrayRepo = 'maven'
bintrayName = 'fullscreen-video-view'

publishedGroupId = 'bg.devlabs'
libraryName = 'fullscreen-video-view'
artifact = 'fullscreen-video-view'

libraryDescription = 'A custom VideoView which makes loading, setting up and going fullscreen of videos easy.'

siteUrl = 'https://github.com/dev-labs-bg/fullscreen-video-view'
gitUrl = 'https://github.com/dev-labs-bg/fullscreen-video-view.git'

libraryVersion = '0.0.1'

developerId = 'developerId'
developerName = 'Developer Name'
developerEmail = 'developer@email.com'

licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'https://raw.githubusercontent.com/dev-labs-bg/fullscreen-video-view/master/LICENSE.txt'
allLicenses = ["Apache-2.0"]
}

android {
compileSdkVersion versions.compileSdk
buildToolsVersion versions.buildTools
Expand All @@ -48,5 +24,4 @@ dependencies {
implementation "com.android.support:appcompat-v7:$versions.supportLib"
}

apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'
apply from: 'release.gradle'
67 changes: 67 additions & 0 deletions library/release.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'
apply from: 'keystore.gradle'

ext {
publishedGroupId = 'bg.devlabs.fullscreenvideoview'
artifactId = 'library'
libraryVersion = '0.0.1'
}

version = libraryVersion
group = publishedGroupId

bintray {
user = 'slavipetrov'
key = bintray_key
configurations = ['archives']
publish = true
override = true
pkg {
repo = "maven"
name = "fullscreen-video-view"
version {
name = libraryVersion
}
}
}

install {
repositories.mavenInstaller {
pom.project {
packaging 'aar'
groupId publishedGroupId
artifactId artifactId
version libraryVersion
name artifactId
}
}
}

if (project.hasProperty("android")) {
task sourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.srcDirs
}

task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}
} else { // Java libraries
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
// options.encoding = 'UTF-8'
}

artifacts {
archives javadocJar
archives sourcesJar
}

0 comments on commit 454c866

Please sign in to comment.