1
0
mirror of synced 2026-08-05 01:36:56 +00:00

Remove 'not found in _includes' hacks

Remove the use if "unless contains 'not found in _includes directory'"
hacks that were previously used to detect when _includes were missing.

This change is required as the hack no longer works with the latest
Jekyll release (and therefore also with GitHub).

Additional 'custom_pom_template' and 'custom_gradle_template' flags
must now be set in _config.yml if you want to include a custom pom.xml
or build.gradle file.
This commit is contained in:
Phillip Webb
2013-11-14 09:54:55 -08:00
parent 171918e41a
commit 85ed196cf4
3 changed files with 8 additions and 6 deletions
+4 -4
View File
@@ -62,11 +62,11 @@
</script>
{% if site.custom_pom_template %}
{% capture maven_pom_template %}
{% include pom.xml %}
{% endcapture %}
{%if maven_pom_template contains 'not found in _includes directory' %}
{% else %}
{% capture maven_pom_template %}
<dependencies>
<dependency>
@@ -99,11 +99,11 @@
{% endhighlight %}
</script>
{% if site.custom_gradle_template %}
{% capture gradle_template %}
{% include build.gradle %}
{% endcapture %}
{%if gradle_template contains 'not found in _includes directory' %}
{% else %}
{% capture gradle_template %}
dependencies {
compile '{@= groupId @}:{@= artifactId @}:{@= version @}'