Closed jjhesk closed 8 years ago
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.5.0' classpath 'com.novoda:bintray-release:0.3.5' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { jcenter() } } ext { //Library configurations ARTIFACT_ID = 'urvlib' VERSION_NAME = '0.4.0' VERSION_CODE = 20 //your version //Application app_test_versionCode = 20 app_test_versionName = '1.0.9' //Support and Build tools version supportLibrary = '22.2.1' ftKit = '0.4.1' //Support Libraries dependencies supportDependencies = [ percent : "com.android.support:percent:${supportLibrary}", annotation: "com.android.support:support-annotations:${supportLibrary}", support : "com.android.support:support-v13:${supportLibrary}", appCompat : "com.android.support:appcompat-v7:${supportLibrary}", rv : "com.android.support:recyclerview-v7:${supportLibrary}", cardView : "com.android.support:cardview-v7:${supportLibrary}", kitCore : "com.52inc:52Kit-core:${ftKit}" ] BINTRAY_USER = 'jjhesk' BINTRAY_APIKEY = '' DESCRIPTION = 'the ultimate recycler view all in to package' SITE_URL = 'https://github.com/HKMOpen/UltimateRecyclerView' GIT_URL = 'https://github.com/HKMOpen/UltimateRecyclerView.git' GROUP_NAME = 'com.hkm.ultimateurv' COMPILE_SDK = 23 BUILD_TOOLS = '23.0.1' MODULE_NAME = 'urvlib' LICENSE = 'MIT' DEVELOPER_ID = 'jjhesk' DEVELOPER_NAME = 'hesk' DEVELOPER_EMAIL = 'poquoson20@hotmail.com' IS_UPLOADING = project.getGradle().startParameter.taskNames.any { it.contains('bintrayUpload') } }
and i got
apply plugin: 'bintray-release' subprojects { group = GROUP_NAME version = VERSION_NAME if (IS_UPLOADING && project.name in [MODULE_NAME]) { println project.name apply plugin: 'maven' gradle.taskGraph.whenReady { taskGraph -> taskGraph.getAllTasks().find { it.path == ":$project.name:generatePomFileForMavenPublication" }.doLast { file("build/publications/maven/pom-default.xml").delete() println 'Overriding pom-file to make sure we can sync to maven central!' pom { //noinspection GroovyAssignabilityCheck project { name "$project.name" artifactId ARTIFACT_ID packaging project.name == 'compiler' ? 'jar' : 'aar' description DESCRIPTION url SITE_URL version VERSION_NAME scm { url GIT_URL connection GIT_URL developerConnection GIT_URL } licenses { license { name LICENSE } } developers { developer { id DEVELOPER_ID name DEVELOPER_NAME email DEVELOPER_EMAIL } } } }.writeTo("build/publications/maven/pom-default.xml") } } } }
i ended up with this warning.
Error:(10, 0) Gradle DSL method not found: 'versionCode()' Possible causes:
As gradle suggests, it seems like this issue is from another library since we don't use that method from the plugin, sorry @jjhesk
and i got
i ended up with this warning.
Error:(10, 0) Gradle DSL method not found: 'versionCode()' Possible causes: