Gradle Project Structure











up vote
0
down vote

favorite












I am working on selenium Gradle project in which I accidentally changed some configuration that causes changes in build structure. before change my project structure was



project-dir




  • .gradle

  • .idea

  • build

  • gradle

  • out

  • src


now its



project-dir




  • .gradle

  • .idea

  • classes

  • gradle

  • out

  • src


when I run command "gradlew build" it should run all the feature files but it is not working after change. can you help me what went wrong. I am new to all this.



I am using
gradle 4.12
selenium 2.53.0
cucumber-junit 1.2.5
cucumber-java 1.2.5
cucumber-core 1.2.5



Gradle.build file:



-



import java.text.DateFormat

import java.text.SimpleDateFormat

version '1.0-SNAPSHOT'

task gitBuildId {

description = "Determine the build id from git"
def buildIdOut = new ByteArrayOutputStream()
def errorsOut = new ByteArrayOutputStream()
def extraInfo = ""
try {
exec {
// TODO: use a java git library?
standardOutput = buildIdOut
errorOutput = errorsOut
commandLine 'git', 'log', '-1', '--pretty=format:%ct|%h', 'HEAD'
}
} catch (Exception e) {
buildIdOut.write('0'.getBytes())
if (errorsOut.toString().contains("Not a git repository")) {
extraInfo = "(Not a git repository and/or no commits found)n" +
"Type: git init; git add *; git commit *;"
}
}
//OR? def buildIdOut = (long) ((new Date()).getTime() / 1000)
DateFormat df = new SimpleDateFormat("yyyyMMddHHmmss")
df.setTimeZone(TimeZone.getTimeZone("GMT"))

//split into hash and timestamp
String parts = buildIdOut.toString().split("\|")
def inTimeStamp = Long.parseLong(parts[0])
def date = new Date((inTimeStamp as long) * 1000)
def dateString = df.format(date)
def buildId = "${dateString}.${parts[1]}"
println "buildId = ${buildId} ${extraInfo}"
ext.output = {
return buildId
}
}

if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}

//def buildId = rootProject.tasks.gitBuildId.output()
def rpmVersion = '0.0.0'
//apply plugin: 'java'
//apply plugin: 'gradle-one-jar'
apply plugin: 'application'
//apply plugin: 'idea'

sourceCompatibility = 1.8

// UTF-8 should be standard by now. So use it!
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'

mainClassName = 'cucumber.api.cli.Main'

// Add Gradle OneJar Plugin, see https://github.com/rholder/gradle-one-jar
buildscript {
repositories {
mavenCentral()
}
}

repositories {
mavenCentral()
}

dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '2.53.0'
testCompile group: 'info.cukes', name: 'cucumber-junit', version: '1.2.5'
testCompile group: 'info.cukes', name: 'cucumber-java', version: '1.2.5'
testCompile group: 'info.cukes', name: 'cucumber-core', version: '1.2.5'
testCompile group: 'info.cukes', name: 'cucumber-jvm-deps', version: '1.0.3'
testCompile group: 'info.cukes', name: 'gherkin', version: '2.7.3'
testCompile group: 'org.mockito', name: 'mockito-all', version: '1.10.8'
testCompile group: 'com.mashape.unirest', name: 'unirest-java', version: '1.4.9'
testCompile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.3.6'
testCompile group: 'org.apache.httpcomponents', name: 'httpasyncclient', version: '4.0.2'
testCompile group: 'org.apache.httpcomponents', name: 'httpmime', version: '4.3.6'
testCompile group: 'org.json', name: 'json', version: '20140107'



compile group: 'mysql', name: 'mysql-connector-java', version: '5.1.6'
compile group: 'info.cukes', name: 'cucumber-junit', version: '1.2.5'
compile group: 'info.cukes', name: 'cucumber-java', version: '1.2.5'
compile group: 'info.cukes', name: 'cucumber-core', version: '1.2.5'
compile group: 'info.cukes', name: 'cucumber-jvm-deps', version: '1.0.3'
}

// Configure the oneJar task
task oneJar() {
doLast {
mainClass = mainClassName
}
}

//def buildId = rootProject.tasks.gitBuildId.output()

allprojects {

apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'signing'
apply plugin: 'application'

mainClassName = 'cucumber.api.cli.Main'

// IDE support
apply from: rootProject.file('gradle/ide.gradle')

//cucumber support
//apply from: rootProject.file('gradle/cucumber.gradle')

if (version == 'unspecified') {
version = '0.0.0'

def envVersion = System.env['VERSION']
if (envVersion) {
version = envVersion
}
}

distZip.doFirst {
copy {
from('bin') {
include '**/*'
}
into file("src/dist/bin")
fileMode = 0755
}
}
}

task deleteTestResults() {
delete "build/test-results/test/"
delete "cucumber-html-reports"
}


/*task cucumberTest() {

def arglist = ["--monochrome", "--plugin", "pretty", "--glue", "com.automation.server",
"src/test/resources/features/"]

return javaexec {
main = "cucumber.api.cli.Main"
classpath = sourceSets.main.runtimeClasspath
args = arglist
}
}*/

test {
//we want display the following test events
testLogging {
events "PASSED", "STARTED", "FAILED", "SKIPPED"
//showStandardStreams = true
}
}

task testBoth {

println 'This is executed last during the execution phase.'
}

task wrapper(type: Wrapper) {
gradleVersion = '4.0'
}
artifacts {
oneJar
}









share|improve this question
























  • Can you post your gradle build file please?
    – EM-Creations
    Nov 21 at 14:31






  • 1




    Why don't you simply revert your change?
    – JB Nizet
    Nov 21 at 18:34










  • I can't revert all changes. there are many commits and I don't know exactly when this happened
    – Netra
    Nov 22 at 9:14










  • @EM-Creations I have added my gradle.build file. can you tell whats possibly went wrong?
    – Netra
    Nov 22 at 9:20










  • could you also add gradle/ide.gradle ? the build.gradle script does not seem to contain anything that could explain the project structure issue..
    – M.Ricciuti
    Nov 22 at 10:02















up vote
0
down vote

favorite












I am working on selenium Gradle project in which I accidentally changed some configuration that causes changes in build structure. before change my project structure was



project-dir




  • .gradle

  • .idea

  • build

  • gradle

  • out

  • src


now its



project-dir




  • .gradle

  • .idea

  • classes

  • gradle

  • out

  • src


when I run command "gradlew build" it should run all the feature files but it is not working after change. can you help me what went wrong. I am new to all this.



I am using
gradle 4.12
selenium 2.53.0
cucumber-junit 1.2.5
cucumber-java 1.2.5
cucumber-core 1.2.5



Gradle.build file:



-



import java.text.DateFormat

import java.text.SimpleDateFormat

version '1.0-SNAPSHOT'

task gitBuildId {

description = "Determine the build id from git"
def buildIdOut = new ByteArrayOutputStream()
def errorsOut = new ByteArrayOutputStream()
def extraInfo = ""
try {
exec {
// TODO: use a java git library?
standardOutput = buildIdOut
errorOutput = errorsOut
commandLine 'git', 'log', '-1', '--pretty=format:%ct|%h', 'HEAD'
}
} catch (Exception e) {
buildIdOut.write('0'.getBytes())
if (errorsOut.toString().contains("Not a git repository")) {
extraInfo = "(Not a git repository and/or no commits found)n" +
"Type: git init; git add *; git commit *;"
}
}
//OR? def buildIdOut = (long) ((new Date()).getTime() / 1000)
DateFormat df = new SimpleDateFormat("yyyyMMddHHmmss")
df.setTimeZone(TimeZone.getTimeZone("GMT"))

//split into hash and timestamp
String parts = buildIdOut.toString().split("\|")
def inTimeStamp = Long.parseLong(parts[0])
def date = new Date((inTimeStamp as long) * 1000)
def dateString = df.format(date)
def buildId = "${dateString}.${parts[1]}"
println "buildId = ${buildId} ${extraInfo}"
ext.output = {
return buildId
}
}

if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}

//def buildId = rootProject.tasks.gitBuildId.output()
def rpmVersion = '0.0.0'
//apply plugin: 'java'
//apply plugin: 'gradle-one-jar'
apply plugin: 'application'
//apply plugin: 'idea'

sourceCompatibility = 1.8

// UTF-8 should be standard by now. So use it!
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'

mainClassName = 'cucumber.api.cli.Main'

// Add Gradle OneJar Plugin, see https://github.com/rholder/gradle-one-jar
buildscript {
repositories {
mavenCentral()
}
}

repositories {
mavenCentral()
}

dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '2.53.0'
testCompile group: 'info.cukes', name: 'cucumber-junit', version: '1.2.5'
testCompile group: 'info.cukes', name: 'cucumber-java', version: '1.2.5'
testCompile group: 'info.cukes', name: 'cucumber-core', version: '1.2.5'
testCompile group: 'info.cukes', name: 'cucumber-jvm-deps', version: '1.0.3'
testCompile group: 'info.cukes', name: 'gherkin', version: '2.7.3'
testCompile group: 'org.mockito', name: 'mockito-all', version: '1.10.8'
testCompile group: 'com.mashape.unirest', name: 'unirest-java', version: '1.4.9'
testCompile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.3.6'
testCompile group: 'org.apache.httpcomponents', name: 'httpasyncclient', version: '4.0.2'
testCompile group: 'org.apache.httpcomponents', name: 'httpmime', version: '4.3.6'
testCompile group: 'org.json', name: 'json', version: '20140107'



compile group: 'mysql', name: 'mysql-connector-java', version: '5.1.6'
compile group: 'info.cukes', name: 'cucumber-junit', version: '1.2.5'
compile group: 'info.cukes', name: 'cucumber-java', version: '1.2.5'
compile group: 'info.cukes', name: 'cucumber-core', version: '1.2.5'
compile group: 'info.cukes', name: 'cucumber-jvm-deps', version: '1.0.3'
}

// Configure the oneJar task
task oneJar() {
doLast {
mainClass = mainClassName
}
}

//def buildId = rootProject.tasks.gitBuildId.output()

allprojects {

apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'signing'
apply plugin: 'application'

mainClassName = 'cucumber.api.cli.Main'

// IDE support
apply from: rootProject.file('gradle/ide.gradle')

//cucumber support
//apply from: rootProject.file('gradle/cucumber.gradle')

if (version == 'unspecified') {
version = '0.0.0'

def envVersion = System.env['VERSION']
if (envVersion) {
version = envVersion
}
}

distZip.doFirst {
copy {
from('bin') {
include '**/*'
}
into file("src/dist/bin")
fileMode = 0755
}
}
}

task deleteTestResults() {
delete "build/test-results/test/"
delete "cucumber-html-reports"
}


/*task cucumberTest() {

def arglist = ["--monochrome", "--plugin", "pretty", "--glue", "com.automation.server",
"src/test/resources/features/"]

return javaexec {
main = "cucumber.api.cli.Main"
classpath = sourceSets.main.runtimeClasspath
args = arglist
}
}*/

test {
//we want display the following test events
testLogging {
events "PASSED", "STARTED", "FAILED", "SKIPPED"
//showStandardStreams = true
}
}

task testBoth {

println 'This is executed last during the execution phase.'
}

task wrapper(type: Wrapper) {
gradleVersion = '4.0'
}
artifacts {
oneJar
}









share|improve this question
























  • Can you post your gradle build file please?
    – EM-Creations
    Nov 21 at 14:31






  • 1




    Why don't you simply revert your change?
    – JB Nizet
    Nov 21 at 18:34










  • I can't revert all changes. there are many commits and I don't know exactly when this happened
    – Netra
    Nov 22 at 9:14










  • @EM-Creations I have added my gradle.build file. can you tell whats possibly went wrong?
    – Netra
    Nov 22 at 9:20










  • could you also add gradle/ide.gradle ? the build.gradle script does not seem to contain anything that could explain the project structure issue..
    – M.Ricciuti
    Nov 22 at 10:02













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am working on selenium Gradle project in which I accidentally changed some configuration that causes changes in build structure. before change my project structure was



project-dir




  • .gradle

  • .idea

  • build

  • gradle

  • out

  • src


now its



project-dir




  • .gradle

  • .idea

  • classes

  • gradle

  • out

  • src


when I run command "gradlew build" it should run all the feature files but it is not working after change. can you help me what went wrong. I am new to all this.



I am using
gradle 4.12
selenium 2.53.0
cucumber-junit 1.2.5
cucumber-java 1.2.5
cucumber-core 1.2.5



Gradle.build file:



-



import java.text.DateFormat

import java.text.SimpleDateFormat

version '1.0-SNAPSHOT'

task gitBuildId {

description = "Determine the build id from git"
def buildIdOut = new ByteArrayOutputStream()
def errorsOut = new ByteArrayOutputStream()
def extraInfo = ""
try {
exec {
// TODO: use a java git library?
standardOutput = buildIdOut
errorOutput = errorsOut
commandLine 'git', 'log', '-1', '--pretty=format:%ct|%h', 'HEAD'
}
} catch (Exception e) {
buildIdOut.write('0'.getBytes())
if (errorsOut.toString().contains("Not a git repository")) {
extraInfo = "(Not a git repository and/or no commits found)n" +
"Type: git init; git add *; git commit *;"
}
}
//OR? def buildIdOut = (long) ((new Date()).getTime() / 1000)
DateFormat df = new SimpleDateFormat("yyyyMMddHHmmss")
df.setTimeZone(TimeZone.getTimeZone("GMT"))

//split into hash and timestamp
String parts = buildIdOut.toString().split("\|")
def inTimeStamp = Long.parseLong(parts[0])
def date = new Date((inTimeStamp as long) * 1000)
def dateString = df.format(date)
def buildId = "${dateString}.${parts[1]}"
println "buildId = ${buildId} ${extraInfo}"
ext.output = {
return buildId
}
}

if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}

//def buildId = rootProject.tasks.gitBuildId.output()
def rpmVersion = '0.0.0'
//apply plugin: 'java'
//apply plugin: 'gradle-one-jar'
apply plugin: 'application'
//apply plugin: 'idea'

sourceCompatibility = 1.8

// UTF-8 should be standard by now. So use it!
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'

mainClassName = 'cucumber.api.cli.Main'

// Add Gradle OneJar Plugin, see https://github.com/rholder/gradle-one-jar
buildscript {
repositories {
mavenCentral()
}
}

repositories {
mavenCentral()
}

dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '2.53.0'
testCompile group: 'info.cukes', name: 'cucumber-junit', version: '1.2.5'
testCompile group: 'info.cukes', name: 'cucumber-java', version: '1.2.5'
testCompile group: 'info.cukes', name: 'cucumber-core', version: '1.2.5'
testCompile group: 'info.cukes', name: 'cucumber-jvm-deps', version: '1.0.3'
testCompile group: 'info.cukes', name: 'gherkin', version: '2.7.3'
testCompile group: 'org.mockito', name: 'mockito-all', version: '1.10.8'
testCompile group: 'com.mashape.unirest', name: 'unirest-java', version: '1.4.9'
testCompile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.3.6'
testCompile group: 'org.apache.httpcomponents', name: 'httpasyncclient', version: '4.0.2'
testCompile group: 'org.apache.httpcomponents', name: 'httpmime', version: '4.3.6'
testCompile group: 'org.json', name: 'json', version: '20140107'



compile group: 'mysql', name: 'mysql-connector-java', version: '5.1.6'
compile group: 'info.cukes', name: 'cucumber-junit', version: '1.2.5'
compile group: 'info.cukes', name: 'cucumber-java', version: '1.2.5'
compile group: 'info.cukes', name: 'cucumber-core', version: '1.2.5'
compile group: 'info.cukes', name: 'cucumber-jvm-deps', version: '1.0.3'
}

// Configure the oneJar task
task oneJar() {
doLast {
mainClass = mainClassName
}
}

//def buildId = rootProject.tasks.gitBuildId.output()

allprojects {

apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'signing'
apply plugin: 'application'

mainClassName = 'cucumber.api.cli.Main'

// IDE support
apply from: rootProject.file('gradle/ide.gradle')

//cucumber support
//apply from: rootProject.file('gradle/cucumber.gradle')

if (version == 'unspecified') {
version = '0.0.0'

def envVersion = System.env['VERSION']
if (envVersion) {
version = envVersion
}
}

distZip.doFirst {
copy {
from('bin') {
include '**/*'
}
into file("src/dist/bin")
fileMode = 0755
}
}
}

task deleteTestResults() {
delete "build/test-results/test/"
delete "cucumber-html-reports"
}


/*task cucumberTest() {

def arglist = ["--monochrome", "--plugin", "pretty", "--glue", "com.automation.server",
"src/test/resources/features/"]

return javaexec {
main = "cucumber.api.cli.Main"
classpath = sourceSets.main.runtimeClasspath
args = arglist
}
}*/

test {
//we want display the following test events
testLogging {
events "PASSED", "STARTED", "FAILED", "SKIPPED"
//showStandardStreams = true
}
}

task testBoth {

println 'This is executed last during the execution phase.'
}

task wrapper(type: Wrapper) {
gradleVersion = '4.0'
}
artifacts {
oneJar
}









share|improve this question















I am working on selenium Gradle project in which I accidentally changed some configuration that causes changes in build structure. before change my project structure was



project-dir




  • .gradle

  • .idea

  • build

  • gradle

  • out

  • src


now its



project-dir




  • .gradle

  • .idea

  • classes

  • gradle

  • out

  • src


when I run command "gradlew build" it should run all the feature files but it is not working after change. can you help me what went wrong. I am new to all this.



I am using
gradle 4.12
selenium 2.53.0
cucumber-junit 1.2.5
cucumber-java 1.2.5
cucumber-core 1.2.5



Gradle.build file:



-



import java.text.DateFormat

import java.text.SimpleDateFormat

version '1.0-SNAPSHOT'

task gitBuildId {

description = "Determine the build id from git"
def buildIdOut = new ByteArrayOutputStream()
def errorsOut = new ByteArrayOutputStream()
def extraInfo = ""
try {
exec {
// TODO: use a java git library?
standardOutput = buildIdOut
errorOutput = errorsOut
commandLine 'git', 'log', '-1', '--pretty=format:%ct|%h', 'HEAD'
}
} catch (Exception e) {
buildIdOut.write('0'.getBytes())
if (errorsOut.toString().contains("Not a git repository")) {
extraInfo = "(Not a git repository and/or no commits found)n" +
"Type: git init; git add *; git commit *;"
}
}
//OR? def buildIdOut = (long) ((new Date()).getTime() / 1000)
DateFormat df = new SimpleDateFormat("yyyyMMddHHmmss")
df.setTimeZone(TimeZone.getTimeZone("GMT"))

//split into hash and timestamp
String parts = buildIdOut.toString().split("\|")
def inTimeStamp = Long.parseLong(parts[0])
def date = new Date((inTimeStamp as long) * 1000)
def dateString = df.format(date)
def buildId = "${dateString}.${parts[1]}"
println "buildId = ${buildId} ${extraInfo}"
ext.output = {
return buildId
}
}

if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}

//def buildId = rootProject.tasks.gitBuildId.output()
def rpmVersion = '0.0.0'
//apply plugin: 'java'
//apply plugin: 'gradle-one-jar'
apply plugin: 'application'
//apply plugin: 'idea'

sourceCompatibility = 1.8

// UTF-8 should be standard by now. So use it!
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'

mainClassName = 'cucumber.api.cli.Main'

// Add Gradle OneJar Plugin, see https://github.com/rholder/gradle-one-jar
buildscript {
repositories {
mavenCentral()
}
}

repositories {
mavenCentral()
}

dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '2.53.0'
testCompile group: 'info.cukes', name: 'cucumber-junit', version: '1.2.5'
testCompile group: 'info.cukes', name: 'cucumber-java', version: '1.2.5'
testCompile group: 'info.cukes', name: 'cucumber-core', version: '1.2.5'
testCompile group: 'info.cukes', name: 'cucumber-jvm-deps', version: '1.0.3'
testCompile group: 'info.cukes', name: 'gherkin', version: '2.7.3'
testCompile group: 'org.mockito', name: 'mockito-all', version: '1.10.8'
testCompile group: 'com.mashape.unirest', name: 'unirest-java', version: '1.4.9'
testCompile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.3.6'
testCompile group: 'org.apache.httpcomponents', name: 'httpasyncclient', version: '4.0.2'
testCompile group: 'org.apache.httpcomponents', name: 'httpmime', version: '4.3.6'
testCompile group: 'org.json', name: 'json', version: '20140107'



compile group: 'mysql', name: 'mysql-connector-java', version: '5.1.6'
compile group: 'info.cukes', name: 'cucumber-junit', version: '1.2.5'
compile group: 'info.cukes', name: 'cucumber-java', version: '1.2.5'
compile group: 'info.cukes', name: 'cucumber-core', version: '1.2.5'
compile group: 'info.cukes', name: 'cucumber-jvm-deps', version: '1.0.3'
}

// Configure the oneJar task
task oneJar() {
doLast {
mainClass = mainClassName
}
}

//def buildId = rootProject.tasks.gitBuildId.output()

allprojects {

apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'signing'
apply plugin: 'application'

mainClassName = 'cucumber.api.cli.Main'

// IDE support
apply from: rootProject.file('gradle/ide.gradle')

//cucumber support
//apply from: rootProject.file('gradle/cucumber.gradle')

if (version == 'unspecified') {
version = '0.0.0'

def envVersion = System.env['VERSION']
if (envVersion) {
version = envVersion
}
}

distZip.doFirst {
copy {
from('bin') {
include '**/*'
}
into file("src/dist/bin")
fileMode = 0755
}
}
}

task deleteTestResults() {
delete "build/test-results/test/"
delete "cucumber-html-reports"
}


/*task cucumberTest() {

def arglist = ["--monochrome", "--plugin", "pretty", "--glue", "com.automation.server",
"src/test/resources/features/"]

return javaexec {
main = "cucumber.api.cli.Main"
classpath = sourceSets.main.runtimeClasspath
args = arglist
}
}*/

test {
//we want display the following test events
testLogging {
events "PASSED", "STARTED", "FAILED", "SKIPPED"
//showStandardStreams = true
}
}

task testBoth {

println 'This is executed last during the execution phase.'
}

task wrapper(type: Wrapper) {
gradleVersion = '4.0'
}
artifacts {
oneJar
}






java selenium gradle build.gradle






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 22 at 9:19

























asked Nov 21 at 13:39









Netra

45




45












  • Can you post your gradle build file please?
    – EM-Creations
    Nov 21 at 14:31






  • 1




    Why don't you simply revert your change?
    – JB Nizet
    Nov 21 at 18:34










  • I can't revert all changes. there are many commits and I don't know exactly when this happened
    – Netra
    Nov 22 at 9:14










  • @EM-Creations I have added my gradle.build file. can you tell whats possibly went wrong?
    – Netra
    Nov 22 at 9:20










  • could you also add gradle/ide.gradle ? the build.gradle script does not seem to contain anything that could explain the project structure issue..
    – M.Ricciuti
    Nov 22 at 10:02


















  • Can you post your gradle build file please?
    – EM-Creations
    Nov 21 at 14:31






  • 1




    Why don't you simply revert your change?
    – JB Nizet
    Nov 21 at 18:34










  • I can't revert all changes. there are many commits and I don't know exactly when this happened
    – Netra
    Nov 22 at 9:14










  • @EM-Creations I have added my gradle.build file. can you tell whats possibly went wrong?
    – Netra
    Nov 22 at 9:20










  • could you also add gradle/ide.gradle ? the build.gradle script does not seem to contain anything that could explain the project structure issue..
    – M.Ricciuti
    Nov 22 at 10:02
















Can you post your gradle build file please?
– EM-Creations
Nov 21 at 14:31




Can you post your gradle build file please?
– EM-Creations
Nov 21 at 14:31




1




1




Why don't you simply revert your change?
– JB Nizet
Nov 21 at 18:34




Why don't you simply revert your change?
– JB Nizet
Nov 21 at 18:34












I can't revert all changes. there are many commits and I don't know exactly when this happened
– Netra
Nov 22 at 9:14




I can't revert all changes. there are many commits and I don't know exactly when this happened
– Netra
Nov 22 at 9:14












@EM-Creations I have added my gradle.build file. can you tell whats possibly went wrong?
– Netra
Nov 22 at 9:20




@EM-Creations I have added my gradle.build file. can you tell whats possibly went wrong?
– Netra
Nov 22 at 9:20












could you also add gradle/ide.gradle ? the build.gradle script does not seem to contain anything that could explain the project structure issue..
– M.Ricciuti
Nov 22 at 10:02




could you also add gradle/ide.gradle ? the build.gradle script does not seem to contain anything that could explain the project structure issue..
– M.Ricciuti
Nov 22 at 10:02

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53413342%2fgradle-project-structure%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53413342%2fgradle-project-structure%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Contact image not getting when fetch all contact list from iPhone by CNContact

count number of partitions of a set with n elements into k subsets

A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks