Skip to content

Commit

Permalink
Exclude test artefacts from jar and plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetbehl committed Apr 18, 2016
1 parent 7bd660f commit 03fdb1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ dependencyManagement {
}

jar {
exclude "test/**"
exclude "test/**/**"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,11 @@ class ElasticsearchGrailsPlugin extends Plugin {

def loadAfter = ['services', 'mongodb']

def pluginExcludes = [
'grails-app/controllers/test/**',
'grails-app/services/test/**',
'grails-app/views/elasticSearch/index.gsp',
'grails-app/domain/test/**',
'**/test/**',
'src/docs/**',
'src/test/**',
'src/integration-test/**'
]
def pluginExcludes = [
"grails-app/views/error.gsp",
"**/test/**",
"src/docs/**"
]

def license = 'APACHE'

Expand Down Expand Up @@ -147,6 +142,6 @@ class ElasticsearchGrailsPlugin extends Plugin {

void doWithDynamicMethods() {
// Define the custom ElasticSearch mapping for searchable domain classes
DomainDynamicMethodsUtils.injectDynamicMethods(grailsApplication, applicationContext)
DomainDynamicMethodsUtils.injectDynamicMethods(grailsApplication, applicationContext)
}
}

0 comments on commit 03fdb1c

Please sign in to comment.