Set version for 2.40.0 RC1
diff --git a/gradle.properties b/gradle.properties
index 605777d..de87efe 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -29,8 +29,8 @@
 # buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy.
 # To build a custom Beam version make sure you change it in both places, see
 # https://github.com/apache/beam/issues/21302.
-version=2.40.0-SNAPSHOT
-sdk_version=2.40.0.dev
+version=2.40.0
+sdk_version=2.40.0
 
 javaVersion=1.8
 
diff --git a/sdks/go/pkg/beam/core/core.go b/sdks/go/pkg/beam/core/core.go
index e60e9e4..87e3a2a 100644
--- a/sdks/go/pkg/beam/core/core.go
+++ b/sdks/go/pkg/beam/core/core.go
@@ -27,5 +27,5 @@
 	// SdkName is the human readable name of the SDK for UserAgents.
 	SdkName = "Apache Beam SDK for Go"
 	// SdkVersion is the current version of the SDK.
-	SdkVersion = "2.40.0.dev"
+	SdkVersion = "2.40.0"
 )
diff --git a/sdks/python/apache_beam/version.py b/sdks/python/apache_beam/version.py
index 16700b1..c2081be 100644
--- a/sdks/python/apache_beam/version.py
+++ b/sdks/python/apache_beam/version.py
@@ -17,4 +17,4 @@
 
 """Apache Beam SDK version information and utilities."""
 
-__version__ = '2.40.0.dev'
+__version__ = '2.40.0'