How to 'gradle build'?

Viewed 293

Could not find method application() for arguments

i tried gradle build but got this error

then i want to build the OneDrive client

i do not want to GET making a returnurl or get it by other means.

plugins {
    id 'application'

}

 application {
   mainClassName = 'com.mycompany.app.App'

}

 apply plugin: 'java'
    sourceSets {
      main {
        java {
        srcDir 'src'
     }
 }


dependencies {
   compile 'org.apache.httpcomponents:httpclient:4.5.10'
   compile 'org.apache.httpcomponents:httpcore:4.4.12'
   compile group: 'org.apache.httpcomponents', name: 'httpclient', 
   version: '4.5.10'
  compile group: 'org.apache.httpcomponents', name: 'httpcore', 
 version: '4.4.12'

}


repositories {
    jcenter()
   maven {
    url "https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient"
}
maven {
    url
0 Answers
Related