diff --git a/asdf.asd b/asdf.asd
index 2816e029ea53d0434df9dfa61c34380a8cb209d0..1d28f666013c675c0821d9ac608723c804e7be63 100644
--- a/asdf.asd
+++ b/asdf.asd
@@ -75,7 +75,7 @@
   :licence "MIT"
   :description "Another System Definition Facility"
   :long-description "ASDF builds Common Lisp software organized into defined systems."
-  :version "3.1.7.39" ;; to be automatically updated by make bump-version
+  :version "3.1.7.40" ;; to be automatically updated by make bump-version
   :depends-on ()
   #+asdf3 :encoding #+asdf3 :utf-8
   :class #+asdf3.1 package-inferred-system #-asdf3.1 system
diff --git a/doc/asdf.texinfo b/doc/asdf.texinfo
index e576827c2673cc0ad012faea18c5f44bd30075d7..d9f446ee75b16321434885e68a26a82638f249ad 100644
--- a/doc/asdf.texinfo
+++ b/doc/asdf.texinfo
@@ -65,7 +65,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 @titlepage
 @title ASDF: Another System Definition Facility
-@subtitle Manual for Version 3.1.7.39
+@subtitle Manual for Version 3.1.7.40
 @c The following two commands start the copyright page.
 @page
 @vskip 0pt plus 1filll
diff --git a/header.lisp b/header.lisp
index ef63236811345bad176122b2bb5472f3922eacb4..6bc90e0a925b5e3d3f244a1fe87f2657dfeacda8 100644
--- a/header.lisp
+++ b/header.lisp
@@ -1,5 +1,5 @@
 ;;; -*- mode: Lisp; Base: 10 ; Syntax: ANSI-Common-Lisp ; buffer-read-only: t; -*-
-;;; This is ASDF 3.1.7.39: Another System Definition Facility.
+;;; This is ASDF 3.1.7.40: Another System Definition Facility.
 ;;;
 ;;; Feedback, bug reports, and patches are all welcome:
 ;;; please mail to <asdf-devel@common-lisp.net>.
diff --git a/uiop/version.lisp-expr b/uiop/version.lisp-expr
index 06f23ab3a34ca8448aae501b1f45441068c0909b..6b28e26fe3e5988e82283c4a0b607f38d6678ef4 100644
--- a/uiop/version.lisp-expr
+++ b/uiop/version.lisp-expr
@@ -1,2 +1,2 @@
-"3.1.7.39"
+"3.1.7.40"
 
diff --git a/upgrade.lisp b/upgrade.lisp
index 9c600bda20d061a039854b2373a9177e579ea927..e5e432b7a31fa5776baa1ed45759fedbf0b61416 100644
--- a/upgrade.lisp
+++ b/upgrade.lisp
@@ -92,7 +92,7 @@ previously-loaded version of ASDF."
          ;; "3.4.5.67" would be a development version in the official branch, on top of 3.4.5.
          ;; "3.4.5.0.8" would be your eighth local modification of official release 3.4.5
          ;; "3.4.5.67.8" would be your eighth local modification of development version 3.4.5.67
-         (asdf-version "3.1.7.39")
+         (asdf-version "3.1.7.40")
          (existing-version (asdf-version)))
     (setf *asdf-version* asdf-version)
     (when (and existing-version (not (equal asdf-version existing-version)))
diff --git a/version.lisp-expr b/version.lisp-expr
index 06f23ab3a34ca8448aae501b1f45441068c0909b..6b28e26fe3e5988e82283c4a0b607f38d6678ef4 100644
--- a/version.lisp-expr
+++ b/version.lisp-expr
@@ -1,2 +1,2 @@
-"3.1.7.39"
+"3.1.7.40"