build.gradle

HBase Mapreduce Dependency Issue when using TableMapper

空扰寡人 提交于 2020-01-23 11:41:46
问题 I am using CDH5.3 and I am trying to write a mapreduce program to scan a table and do some proccessing. I have created a mapper which extends TableMapper and exception that i am getting is : java.io.FileNotFoundException: File does not exist: hdfs://localhost:54310/usr/local/hadoop-2.5-cdh-3.0/share/hadoop/common/lib/protobuf-java-2.5.0.jar at org.apache.hadoop.hdfs.DistributedFileSystem$17.doCall(DistributedFileSystem.java:1093) at org.apache.hadoop.hdfs.DistributedFileSystem$17.doCall

HBase Mapreduce Dependency Issue when using TableMapper

流过昼夜 提交于 2020-01-23 11:41:22
问题 I am using CDH5.3 and I am trying to write a mapreduce program to scan a table and do some proccessing. I have created a mapper which extends TableMapper and exception that i am getting is : java.io.FileNotFoundException: File does not exist: hdfs://localhost:54310/usr/local/hadoop-2.5-cdh-3.0/share/hadoop/common/lib/protobuf-java-2.5.0.jar at org.apache.hadoop.hdfs.DistributedFileSystem$17.doCall(DistributedFileSystem.java:1093) at org.apache.hadoop.hdfs.DistributedFileSystem$17.doCall

How to generate output APK file with Customised name in Android Studio?

≡放荡痞女 提交于 2020-01-23 09:46:26
问题 I want to generate output apk file using customized name. Eg. By default, android studio generates "app-debug.apk" file. But I want it to be - "MyAppName_myCurrentProdFlavour_vMyVersionName.apk" How to do this using build.gradle file of module 回答1: Easiest way Before app_debug.apk After com.pcvark.jobtest-v1(1.0)-debug.apk android { .. defaultConfig { ... setProperty("archivesBaseName", applicationId + "-v" + versionCode + "(" + versionName + ")") } Tip You can also set versionNameSuffix for

Unsupported Modules Detected: Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project

我与影子孤独终老i 提交于 2020-01-23 04:46:10
问题 Unsupported Modules Detected: Compilation is not supported for the following modules: MemorandamApp. Unfortunately, you can't have non-Gradle Java modules and Android-Gradle modules in one project. This Error caused to erase my files. Newly opened files are affected by this problem. 回答1: 1- close the project 2- close Android Studio IDE 3- delete the .idea directory 4- delete all .iml files 5- open Android Studio IDE and import the project The answer is taken from HERE 回答2: Switch to project

Gradle doesn't emit kotlin.js

﹥>﹥吖頭↗ 提交于 2020-01-22 20:15:31
问题 I'm trying to compile my Kotlin app and set of Kotlin libraries to JavaScript. I've got that working well, but when I try to run it it can't find kotlin.js . So what's going on here? When I compile using IDEA (instead of Gradle), it outputs kotlin.js just fine. I tried making my build script more like an example I found, but that wouldn't compile... Here's a link to the code and project in question: https://github.com/BlueHuskyStudios/Decision-Cruncher/blob/SO/q/53582651/1/build.gradle 回答1:

Configuration for Gradle 4.7 to generate the HTML report for JUnit 5 tests

怎甘沉沦 提交于 2020-01-21 15:06:05
问题 I have an app based as follows: Spring Framework 5.0.4.RELEASE Gradle 4.7 - multimodule project configured through JUnit 5.1.1 The configuration about Gradle with JUnit is in the build.gradle file located in the root module: ... subprojects { apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'org.junit.platform.gradle.plugin' sourceCompatibility = '1.8' targetCompatibility = '1.8' repositories { jcenter() } ext { ... junitVersion = '5.1.1' ... } dependencies { ... //Testing ...

Android - Webview (kitkat and below): Error In Java Script Function 'includes'

依然范特西╮ 提交于 2020-01-17 08:26:40
问题 Trying to Call WebView , While Calling Local Web Page It will Gives Error Uncaught TypeError: Object ["Some Object"] has no method : 'includes', source: file:///storage/sdcard0/MyDemo/js/fileName.js It will gives Error To Kitkat and Below. It works Properly above Kitkat. It was working Fine With gradle Settings below compileSdkVersion 25 buildToolsVersion "25.0.2" and Dependancy compile 'com.android.support:design:25.3.1' compile 'com.android.support:support-v4:25.3.1 Currently Using Gradle

Add Classpath in Manifest file of jar in gradle

别来无恙 提交于 2020-01-17 02:52:49
问题 Below is my gradle script and I need to add the data in MANIFEST.MF of jar file in below format I tried the below method but not able to achieve it. i need it in below way. I am using the gradle 2.3 apply plugin: 'java' sourceCompatibility = 1.7 jar.doFirst { manifest { attributes("Manifest-Version": "1.0", "Class-Path": configurations.compile.collect { it.getName() }.join(' ')) } } repositories { maven { url "http://cmp.tsh.thomson.com:80/artifactory/libs-release" } maven { url "http://cmp

Gradle: 'archives' artifacts not populated to 'default' configuration

谁都会走 提交于 2020-01-17 02:42:47
问题 I'm trying to write a simple gradle file that publishes a pre-built jar archive: apply plugin: 'base' artifacts { archives file('some.jar') } task q << { println project.configurations.archives.allArtifacts*.file println project.configurations.default.allArtifacts*.file } However, as gradle q shows, some.jar only gets added to the archives configuration. What am I missing? 回答1: As the Gradle documentation shows, archives configuration has no relationship to default configuration . If you need

Gradle: 'archives' artifacts not populated to 'default' configuration

纵饮孤独 提交于 2020-01-17 02:42:03
问题 I'm trying to write a simple gradle file that publishes a pre-built jar archive: apply plugin: 'base' artifacts { archives file('some.jar') } task q << { println project.configurations.archives.allArtifacts*.file println project.configurations.default.allArtifacts*.file } However, as gradle q shows, some.jar only gets added to the archives configuration. What am I missing? 回答1: As the Gradle documentation shows, archives configuration has no relationship to default configuration . If you need