Skip to content

Instantly share code, notes, and snippets.

@HoBoS-TaCo
Created November 21, 2013 10:33
Show Gist options
  • Save HoBoS-TaCo/7579405 to your computer and use it in GitHub Desktop.
Save HoBoS-TaCo/7579405 to your computer and use it in GitHub Desktop.
$ gradle assemble
:compileJava
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseResponse.java:5: error: package org.apache.http does not exist
import org.apache.http.HttpEntity;
^
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseResponse.java:25: error: cannot find symbol
public ReleaseResponse fromEntity(HttpEntity entity) {
^
symbol: class HttpEntity
location: class ReleaseResponse
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:7: error: package org.apache.http does not exist
import org.apache.http.HttpResponse;
^
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:8: error: package org.apache.http does not exist
import org.apache.http.HttpStatus;
^
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:9: error: package org.apache.http does not exist
import org.apache.http.HttpVersion;
^
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:10: error: package org.apache.http.client.methods does not exist
import org.apache.http.client.methods.HttpPost;
^
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:11: error: package org.apache.http.client.utils does not exist
import org.apache.http.client.utils.URIBuilder;
^
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:12: error: package org.apache.http.entity does not exist
import org.apache.http.entity.ContentType;
^
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:13: error: package org.apache.http.entity does not exist
import org.apache.http.entity.FileEntity;
^
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:14: error: package org.apache.http.entity does not exist
import org.apache.http.entity.StringEntity;
^
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:15: error: package org.apache.http.message does not exist
import org.apache.http.message.BasicHttpResponse;
^
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:29: error: cannot find symbol
private static HttpResponse createRelease(Extension extension) {
^
symbol: class HttpResponse
location: class ReleaseTask
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:63: error: cannot find symbol
private static void uploadRelease(HttpResponse releaseResponse) {
^
symbol: class HttpResponse
location: class ReleaseTask
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:23: error: cannot find symbol
HttpResponse response = createRelease(extension);
^
symbol: class HttpResponse
location: class ReleaseTask
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:31: error: cannot find symbol
URIBuilder uri = new URIBuilder();
^
symbol: class URIBuilder
location: class ReleaseTask
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:31: error: cannot find symbol
URIBuilder uri = new URIBuilder();
^
symbol: class URIBuilder
location: class ReleaseTask
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:42: error: cannot find symbol
HttpPost post = new HttpPost(String.valueOf(uri));
^
symbol: class HttpPost
location: class ReleaseTask
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:42: error: cannot find symbol
HttpPost post = new HttpPost(String.valueOf(uri));
^
symbol: class HttpPost
location: class ReleaseTask
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:43: error: cannot find symbol
StringEntity entity = new StringEntity(new Release(extension, arguments).asJSON(), ContentType.APPLICATION_JSON);
^
symbol: class StringEntity
location: class ReleaseTask
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:43: error: cannot find symbol
StringEntity entity = new StringEntity(new Release(extension, arguments).asJSON(), ContentType.APPLICATION_JSON);
^
symbol: class StringEntity
location: class ReleaseTask
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:43: error: cannot find symbol
StringEntity entity = new StringEntity(new Release(extension, arguments).asJSON(), ContentType.APPLICATION_JSON);
^
symbol: variable ContentType
location: class ReleaseTask
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:46: error: cannot find symbol
BasicHttpResponse response = new BasicHttpResponse(HttpVersion.HTTP_1_1, HttpStatus.SC_OK, "OK");
^
symbol: class BasicHttpResponse
location: class ReleaseTask
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:46: error: cannot find symbol
BasicHttpResponse response = new BasicHttpResponse(HttpVersion.HTTP_1_1, HttpStatus.SC_OK, "OK");
^
symbol: class BasicHttpResponse
location: class ReleaseTask
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:46: error: cannot find symbol
BasicHttpResponse response = new BasicHttpResponse(HttpVersion.HTTP_1_1, HttpStatus.SC_OK, "OK");
^
symbol: variable HttpVersion
location: class ReleaseTask
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:46: error: cannot find symbol
BasicHttpResponse response = new BasicHttpResponse(HttpVersion.HTTP_1_1, HttpStatus.SC_OK, "OK");
^
symbol: variable HttpStatus
location: class ReleaseTask
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:66: error: cannot find symbol
URIBuilder uri = new URIBuilder();
^
symbol: class URIBuilder
location: class ReleaseTask
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:66: error: cannot find symbol
URIBuilder uri = new URIBuilder();
^
symbol: class URIBuilder
location: class ReleaseTask
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:78: error: cannot find symbol
HttpPost post = new HttpPost(String.valueOf(uri));
^
symbol: class HttpPost
location: class ReleaseTask
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:78: error: cannot find symbol
HttpPost post = new HttpPost(String.valueOf(uri));
^
symbol: class HttpPost
location: class ReleaseTask
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:79: error: cannot find symbol
post.setEntity(new FileEntity(new File(new File("."), extension.releasePath)));
^
symbol: class FileEntity
location: class ReleaseTask
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:81: error: cannot find symbol
BasicHttpResponse response = new BasicHttpResponse(HttpVersion.HTTP_1_1, HttpStatus.SC_OK, "OK");
^
symbol: class BasicHttpResponse
location: class ReleaseTask
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:81: error: cannot find symbol
BasicHttpResponse response = new BasicHttpResponse(HttpVersion.HTTP_1_1, HttpStatus.SC_OK, "OK");
^
symbol: class BasicHttpResponse
location: class ReleaseTask
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:81: error: cannot find symbol
BasicHttpResponse response = new BasicHttpResponse(HttpVersion.HTTP_1_1, HttpStatus.SC_OK, "OK");
^
symbol: variable HttpVersion
location: class ReleaseTask
D:\GitRelease\src\main\java\com\github\hobos_taco\gitrelease\ReleaseTask.java:81: error: cannot find symbol
BasicHttpResponse response = new BasicHttpResponse(HttpVersion.HTTP_1_1, HttpStatus.SC_OK, "OK");
^
symbol: variable HttpStatus
location: class ReleaseTask
34 errors
:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 3.431 secs
////
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
group = 'com.github.hobos_taco.gitrelease'
version = '1.0'
archivesBaseName = 'GitRelease'
targetCompatibility = '1.7'
sourceCompatibility = '1.7'
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
compile 'org.apache.httpcomponents:httpcomponents-core:4.3'
compile 'org.apache.httpcomponents:httpcomponents-client:4.3'
compile 'com.google.code.gson:gson:2.2.4'
}
artifacts { archives jar }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment